From: vladfo Date: Fri, 30 Aug 2024 14:47:19 +0000 (+0300) Subject: добавил уникальность для кода X-Git-Tag: 1.4~18^2^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=f94d316160d4deb9a0c11b8ed06a2a915387a315;p=erp24_rep%2Fyii-erp24%2F.git добавил уникальность для кода --- diff --git a/erp24/records/MotivationCostsItem.php b/erp24/records/MotivationCostsItem.php index c12c0356..63b1ff9c 100644 --- a/erp24/records/MotivationCostsItem.php +++ b/erp24/records/MotivationCostsItem.php @@ -43,7 +43,7 @@ class MotivationCostsItem extends ActiveRecord ['data_type', 'in', 'range' => [self::DATA_TYPE_INT, self::DATA_TYPE_FLOAT, self::DATA_TYPE_STRING]], ['order', 'integer'], ['is_active', 'boolean'], - [['name', 'code'], 'unique'], + [['name', 'code', 'order'], 'unique'], ]; }