2023-01-15 23:51:11 |
Robert Lyon |
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:
[DivisionByZeroError]: Modulo by zero
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 |
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:
[DivisionByZeroError]: Modulo by zero
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 |
|