File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public function preSubmit(FormEvent $event)
47
47
$ post = $ event ->getData ();
48
48
49
49
foreach ($ form ->all () as $ child ) {
50
- if ($ child ->getConfig ()->getType ()-> getName () === ' afe_single_upload ' ) {
50
+ if ($ this -> isFieldSingleUpload ( $ child ->getConfig ()->getType ()) ) {
51
51
$ childPost = $ post [$ child ->getName ()];
52
52
$ options = $ child ->getConfig ()->getOptions ();
53
53
@@ -140,4 +140,12 @@ public function postSubmit(FormEvent $event)
140
140
}
141
141
}
142
142
}
143
+
144
+ private function isFieldSingleUpload (ResolvedFormTypeInterface $ formTypeInterface = null )
145
+ {
146
+ if ($ formTypeInterface == null ) return false ;
147
+ if ($ formTypeInterface ->getName () == 'afe_single_upload ' ) return true ;
148
+
149
+ return $ this ->isFieldSingleUpload ($ formTypeInterface ->getParent ());
150
+ }
143
151
}
You can’t perform that action at this time.
0 commit comments