File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ public function moveUploads() {
132132 foreach ($ this ->uploads ["_ $ key " ] as $ index => $ document ) {
133133 $ document = Toolbox::stripslashes_deep ($ document );
134134 if (is_file (GLPI_TMP_DIR . '/ ' . $ document )) {
135- $ prefix = $ this ->uploads ['_prefix_formcreator_field_ ' . $ this -> question -> getID () ][$ index ];
135+ $ prefix = $ this ->uploads ['_prefix_ ' . $ key ][$ index ];
136136 $ answer_value [] = $ this ->saveDocument ($ document , $ prefix );
137137 }
138138 $ index ++;
@@ -188,7 +188,7 @@ public function saveUploads($input) {
188188 foreach ($ input ["_ $ key " ] as $ document ) {
189189 $ document = Toolbox::stripslashes_deep ($ document );
190190 if (is_file (GLPI_TMP_DIR . '/ ' . $ document )) {
191- $ prefix = $ input ['_prefix_formcreator_field_ ' . $ this -> question -> getID () ][$ index ];
191+ $ prefix = $ input ['_prefix_ ' . $ key ][$ index ];
192192 $ answer_value [] = $ this ->saveDocument ($ document , $ prefix );
193193 }
194194 $ index ++;
You can’t perform that action at this time.
0 commit comments