Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed issue: Editing a quota and setting a limit too high shows a dat…
…abase exception
  • Loading branch information
c-schmitz committed May 30, 2023
1 parent a221754 commit 54819e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Quota.php
Expand Up @@ -81,7 +81,7 @@ public function rules()
return array(
array('name,qlimit,action', 'required'),
array('name', 'LSYii_Validators'), // Maybe more restrictive
array('qlimit', 'numerical', 'integerOnly' => true, 'min' => '0', 'allowEmpty' => true),
array('qlimit', 'numerical', 'integerOnly' => true, 'min' => '0', 'max' => 2147483647, 'allowEmpty' => true),
array('action', 'numerical', 'integerOnly' => true, 'min' => '1', 'max' => '2', 'allowEmpty' => true), // Default is null ?
array('active', 'numerical', 'integerOnly' => true, 'min' => '0', 'max' => '1', 'allowEmpty' => true),
array('autoload_url', 'numerical', 'integerOnly' => true, 'min' => '0', 'max' => '1', 'allowEmpty' => true),
Expand Down

0 comments on commit 54819e1

Please sign in to comment.