]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Редактирование записи отладка
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 24 Oct 2024 14:33:10 +0000 (17:33 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 24 Oct 2024 14:33:10 +0000 (17:33 +0300)
erp24/controllers/crud/ClusterAdminController.php

index faa13fb1490ea026b53e93137b85ccd51c623303..41d0b5531c1954293a2db786a19b8075f5369353 100644 (file)
@@ -240,7 +240,7 @@ class ClusterAdminController extends Controller
                 if ($model->active == 0) {
                     $existingInactiveRecords = ClusterAdmin::find()
                         ->where(['admin_id' => $model->admin_id,])
-                       // ->andWhere(['!=', 'cluster_id', $model->cluster_id])
+                        ->andWhere(['!=', 'id', $model->id])
                         ->all();
 
                     foreach ($existingInactiveRecords as $record) {