-
Bug
-
Resolution: Fixed
-
Major
-
2.9
-
MOODLE_29_STABLE
-
MOODLE_29_STABLE
-
Steps to reproduce
1. Start with a quiz like this
- Section 1
- Page 1
- Q1
- Page 2
- Q2
- Page 3
- Q3
- Page 4
- Q4
- Page 1
2. Click the remove page-break icon after Q1, so you have
- Section 1
- Page 1
- Q1
- Q2
- Page 2
- Q3
- Page 3
- Q4
- Page 1
3. Choose 'Add new section heading' in the Page 2 menu.
Actual result:
- Section 1
- Page 1
- Q1
- Q2
- Page 2
- Q3
- Page 1
- Section heading ...
- Page 3
- Q4
- Page 3
Expected result:
- Section 1
- Page 1
- Q1
- Q2
- Page 1
- Section heading ...
- Page 2
- Q3
- Page 3
- Q4
- Page 2
The problem is that the Ajax action for add/remove page-break does not update the data used by the add section heading action. That data includes the page number that was output when the page was first rendered. (I assume we are fixing up the add Question actions, but we should test that too.)
- is a regression caused by
-
MDL-40988 Add section headings to quiz
-
- Closed
-