Skip to content

Commit 2221a3e

Browse files
committed
refactor(filefield): remove unused method
1 parent 187f3f9 commit 2221a3e

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

inc/field/filefield.class.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)