Skip to content

Commit

Permalink
comboNotUnique → message
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed May 26, 2023
1 parent 3270c90 commit 57556c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/EntryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,14 @@ protected function defineRules(): array
UniqueValidator::class,
'targetClass' => EntryTypeRecord::class,
'targetAttribute' => ['name', 'sectionId'],
'comboNotUnique' => Craft::t('yii', '{attribute} "{value}" has already been taken.'),
'message' => Craft::t('yii', '{attribute} "{value}" has already been taken.'),
];
$rules[] = [
['handle'],
UniqueValidator::class,
'targetClass' => EntryTypeRecord::class,
'targetAttribute' => ['handle', 'sectionId'],
'comboNotUnique' => Craft::t('yii', '{attribute} "{value}" has already been taken.'),
'message' => Craft::t('yii', '{attribute} "{value}" has already been taken.'),
];
$rules[] = [['fieldLayout'], 'validateFieldLayout'];

Expand Down

0 comments on commit 57556c7

Please sign in to comment.