From 54819e13ca6760aa1b8779be8c53ef2b95d6937b Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Tue, 30 May 2023 16:28:09 +0200 Subject: [PATCH] Fixed issue: Editing a quota and setting a limit too high shows a database exception --- application/models/Quota.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Quota.php b/application/models/Quota.php index a6e89ed7283..5d5f349e51e 100644 --- a/application/models/Quota.php +++ b/application/models/Quota.php @@ -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),