File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -200,21 +200,6 @@ public static function canRequire(): bool {
200200 return true ;
201201 }
202202
203- public function saveUploads ($ input ) {
204- $ key = 'formcreator_field_ ' . $ this ->question ->getID ();
205- $ index = 0 ;
206- $ answer_value = [];
207- foreach ($ input ["_ $ key " ] as $ document ) {
208- $ document = Toolbox::stripslashes_deep ($ document );
209- if (is_file (GLPI_TMP_DIR . '/ ' . $ document )) {
210- $ prefix = $ input ['_prefix_ ' . $ key ][$ index ];
211- $ answer_value [] = $ this ->saveDocument ($ document , $ prefix );
212- }
213- $ index ++;
214- }
215- $ this ->uploadData = $ answer_value ;
216- }
217-
218203 public function hasInput ($ input ): bool {
219204 // key with unserscore when testing unput from a requester
220205 // key without underscore when testing data from DB (display a saved answer)
You can’t perform that action at this time.
0 commit comments