mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-66626 assignfeedback_editpdf: Check page count for attempt.
Co-Authored-By: John Yao <johnyao@catalyst-au.net>
This commit is contained in:
parent
78572f186d
commit
42f75f5a52
1 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue