File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -204,10 +204,12 @@ public function createService(Api $api, $serviceName)
204204 $ fields = [];
205205 if (isset ($ this ->config ['zf-content-validation ' ][$ serviceClassName ])) {
206206 foreach ($ this ->config ['zf-content-validation ' ][$ serviceClassName ] as $ validatorKey => $ validatorName ) {
207- foreach ($ this ->mapFields ($ this ->config ['input_filter_specs ' ][$ validatorName ]) as $ fieldData ) {
208- $ fields [$ validatorKey ][] = $ this ->getField ($ fieldData );
207+ if (isset ($ this ->config ['input_filter_specs ' ][$ validatorName ])) {
208+ foreach ($ this ->mapFields ($ this ->config ['input_filter_specs ' ][$ validatorName ]) as $ fieldData ) {
209+ $ fields [$ validatorKey ][] = $ this ->getField ($ fieldData );
210+ }
211+ $ hasFields = true ;
209212 }
210- $ hasFields = true ;
211213 }
212214 }
213215
You can’t perform that action at this time.
0 commit comments