Problem with divide by zero when setting pagination limit
Bug #2002924 reported by
Robert Lyon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Unassigned |
Bug Description
For certain blocks there is the ability to set the 'count' (pagination limit) and if one sets it to a non integer value it causes the error:
[DivisionByZer
We need to set a rule for the field so that it can only be an integer, eg
'rules' => array('integer' => true, 'minvalue' => 1, 'maxvalue' => 100),
To test:
1) Create a plan
2) create some tasks
3) Edit a page and add plan block to page
view page - all is fine
4) Edit the plan block and set 'count' to 'none'
On save - things hang
On page reload - see error
Can't edit page to fix problem so will mark this bug as high
Changed in mahara: | |
status: | New → Confirmed |
milestone: | none → 23.04.0 |
importance: | Undecided → High |
description: | updated |
Changed in mahara: | |
status: | Confirmed → In Progress |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Patch for "main" branch: https:/ /reviews. mahara. org/c/mahara/ +/13620