MDL-66626 assignfeedback_editpdf: Check page count for attempt.
Co-Authored-By: John Yao <[email protected]>
This commit is contained in:
co-authored by
John Yao
parent
78572f186d
commit
42f75f5a52
@@ -576,7 +576,9 @@ EOD;
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($pages)) {
|
||||
$totalpagesforattempt = self::page_number_for_attempt($assignment, $userid, $attemptnumber, false);
|
||||
// Here we are comparing the total number of images against the total number of pages from the combined PDF.
|
||||
if (empty($pages) || count($pages) != $totalpagesforattempt) {
|
||||
if ($readonly) {
|
||||
// This should never happen, there should be a version of the pages available
|
||||
// whenever we are requesting the readonly version.
|
||||
|
||||
Reference in New Issue
Block a user