mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-75898 assignfeedback_editpdf: Improve page count mismatch logic
MDL-45580 introduced the readonlypages filearea, and when loading page images for an attempt, the code would check if the pages existed , creating them if not. The code inside this block also contained a guard clause for the case where no readonly pages existed - which is a situation that should not happen. Whenever readonly pages are requested, they should exist. MDL-66626 introduced a situation where page counts not matching would also retrigger page generation. However this led to a situation where the guard clause could be entered when requesting readonly pages. This patch refactors the guard clause, and improves the logic to regenerate pages.
- Loading branch information
1 parent
3fa4195
commit 2fbb766
Showing
2 changed files
with
80 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters