Skip to content

Commit

Permalink
Bug: Доработка правил валидации модели BLink
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarinov committed Aug 30, 2014
1 parent 151abc1 commit e09cd8a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions backend/protected/modules/seo/models/BLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ public function tableName()
public function rules()
{
return array(
array('url, content, title', 'required'),
array('url', 'unique'),
array('url, content, title, section_id', 'required'),
array('url, email', 'unique'),
array('email', 'email'),
array('section_id, position, visible', 'numerical', 'integerOnly' => true),
array('url', 'length', 'max' => 255),
array('visible', 'length', 'max' => 1),
array('date', 'date', 'format' => 'mm.dd.yyyy'),
array('page, title, notice, content', 'safe'),
array('page, title, notice, content, region', 'safe'),
array('section_id', 'safe', 'on' => 'search'),
);
}
Expand Down

0 comments on commit e09cd8a

Please sign in to comment.