Skip to content

Commit

Permalink
Fixed issue: Database error when editing a quota and text is too long
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieljenik committed Jun 1, 2021
1 parent 75bb4da commit ab6c7a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions application/models/Quota.php
Expand Up @@ -89,6 +89,7 @@ public function rules()
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),
array('name', 'length', 'min' => 0, 'max' => 255),
);
}

Expand Down
3 changes: 3 additions & 0 deletions application/models/QuotaLanguageSetting.php
Expand Up @@ -74,6 +74,9 @@ public function rules()
array('quotals_urldescrip', 'LSYii_Validators'),
array('quotals_url', 'filter', 'filter' => 'trim'),
array('quotals_url', 'urlValidator'),
array('quotals_name', 'length', 'min' => 0, 'max' => 255),
array('quotals_url', 'length', 'min' => 0, 'max' => 255),
array('quotals_urldescrip', 'length', 'min' => 0, 'max' => 255),
);
}
public function urlValidator()
Expand Down

0 comments on commit ab6c7a3

Please sign in to comment.