Affects Version/s: 2.3
Fix Version/s: 2.3.2
Regression testing only:
ShowRegression testing only: Add a new course Set format to topics Set 'course display' to one section per page Visit a single section VERIFY: that a log entry has been added for viewing the single section
- Add a new course
- Set format to topics
- Set 'course display' to one section per page
- Visit a single section
- VERIFY: that a log entry has been added for viewing the single section
Pull from Repository:
Around line 101 in course/view.php
assumes positive section numbers (that is, $section > 0) or else throws an exception at
However, format plugins may use negative section numbers to control the display. The whole condition seems to merely serve logging and so seems unnecessarily too strong.
The condition could be replaced with
to get the same effect and still allow format plugins more flexibility.