Skip to content

Commit

Permalink
Fixed issue #18703: Upload files show error if not seen (using index) (
Browse files Browse the repository at this point in the history
…#3015)

Co-authored-by: tiborpacalat <129872163+tiborpacalat@users.noreply.github.com>
  • Loading branch information
Shnoulle and tiborpacalat committed Apr 21, 2023
1 parent da57445 commit 234b162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/expressions/em_manager_helper.php
Expand Up @@ -2376,7 +2376,7 @@ public function _CreateSubQLevelRelevanceAndValidationEqns($onlyThisQseq = null)
$sgqa = $qinfo['sgqa'];
switch ($type) {
case Question::QT_VERTICAL_FILE_UPLOAD: //List - dropdown
$eqn = "(" . $sgqa . "_filecount >= (" . $min_num_of_files . "))";
$eqn = "(" . $sgqa . "_filecount.NAOK >= (" . $min_num_of_files . "))";
break;
default:
break;
Expand Down Expand Up @@ -2404,7 +2404,7 @@ public function _CreateSubQLevelRelevanceAndValidationEqns($onlyThisQseq = null)
$sgqa = $qinfo['sgqa'];
switch ($type) {
case Question::QT_VERTICAL_FILE_UPLOAD: //List - dropdown
$eqn = "(" . $sgqa . "_filecount <= (" . $max_num_of_files . "))";
$eqn = "(is_empty(" . $sgqa . "_filecount.NAOK) || " . $sgqa . "_filecount.NAOK <= (" . $max_num_of_files . "))";
break;
default:
break;
Expand Down

0 comments on commit 234b162

Please sign in to comment.