Commit 8de0928f authored by Олег Гиммельшпах's avatar Олег Гиммельшпах

Merge branch 'master' of git.task-on.com:ktask/taskoncom

parents 96f15f2e 82cca8c1
......@@ -125,7 +125,7 @@ class CoContent extends \common\components\ActiveRecordModel
[['file'], 'file', 'skipOnEmpty' => true, 'extensions' => 'png, jpg, jpeg, gif'],
[['url', 'type', 'priority'], 'required'],
[['url'], 'string', 'max' => 250],
[['url'], 'unique'],
[['url'], 'unique', 'targetAttribute' => ['url', 'category_id']],
[['category_id', 'custom'], 'safe'],
];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment