Skip to content

Commit

Permalink
Image have to be an URL
Browse files Browse the repository at this point in the history
  • Loading branch information
glpzzz authored Nov 25, 2020
1 parent bdd8346 commit 2f0c2a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions models/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public function rules()
[['body'], 'cleanHtmlValidator'],
[['title', 'slug', 'abstract', 'language'], 'string', 'max' => 1000],
[['image', 'abstract', 'body'], 'default'],
[['image'], 'url'],
[['status'], 'integer'],
[['status'], 'default', 'value' => self::STATUS_POST_DRAFT],
[['parent_id'], 'exist', 'skipOnError' => true, 'targetClass' => Page::class, 'targetAttribute' => ['parent_id' => 'id']],
Expand Down

0 comments on commit 2f0c2a7

Please sign in to comment.