Skip to content

Commit

Permalink
fix(formanswer): bad id in list of uploaded files
Browse files Browse the repository at this point in the history
btry committed Apr 19, 2022

Verified

This commit was signed with the committer’s verified signature.
ljharb Jordan Harband
1 parent 2050c61 commit b5a39cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/formanswer.class.php
Original file line number Diff line number Diff line change
@@ -2023,8 +2023,8 @@ public function getFileProperties(): array {
continue;
}

foreach ($field->getDocumentsForTarget() as $question_id) {
$document = Document::getById($question_id);
foreach ($field->getDocumentsForTarget() as $documentId) {
$document = Document::getById($documentId);
if (!is_object($document)) {
// If the document no longer exists
continue;

0 comments on commit b5a39cf

Please sign in to comment.