Skip to content

Commit

Permalink
Fixed issue #18481: Panel Configuration : Insert new box without posi…
Browse files Browse the repository at this point in the history
…tion (#2818)

Co-authored-by: lapiudevgit <devgit@lapiu.biz>
  • Loading branch information
gabrieljenik and lapiudevgit committed Jan 4, 2023
1 parent 607adce commit cf9170a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Box.php
Expand Up @@ -27,7 +27,7 @@ public function rules()
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(
array('url, title, ico, desc, page', 'required'),
array('url, title, ico, position, desc, page', 'required'),
array('url', 'match', 'pattern' => '/(http:\/\/)?[a-zA-Z]([a-zA-Z0-9-_?&"\'=]\/?)*/'),
array('position', 'numerical', 'integerOnly' => true),
array('usergroup', 'numerical', 'integerOnly' => true, 'min' => -3),
Expand Down

0 comments on commit cf9170a

Please sign in to comment.