]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
добавил уникальность для кода
authorvladfo <fvv2011@gmail.com>
Fri, 30 Aug 2024 14:47:19 +0000 (17:47 +0300)
committervladfo <fvv2011@gmail.com>
Fri, 30 Aug 2024 14:47:19 +0000 (17:47 +0300)
erp24/records/MotivationCostsItem.php

index c12c03567707896f375a7c454cbe826c7aa482e2..63b1ff9c93e0b16f7f424e84b19b4ab905fcb527 100644 (file)
@@ -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'],
         ];
     }