We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8792ed3 commit a02a9c7Copy full SHA for a02a9c7
inc/field/filefield.class.php
@@ -129,8 +129,7 @@ public function moveUploads() {
129
return;
130
}
131
$answer_value = [];
132
- $index = 0;
133
- foreach ($this->uploads["_$key"] as $document) {
+ foreach ($this->uploads["_$key"] as $index => $document) {
134
$document = Toolbox::stripslashes_deep($document);
135
if (is_file(GLPI_TMP_DIR . '/' . $document)) {
136
$prefix = $this->uploads['_prefix_formcreator_field_' . $this->question->getID()][$index];
0 commit comments