shish 2 anni fa
parent
commit
c0da9a7a1b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      biz-ghs/item/classes/ItemClass.php

+ 1 - 1
biz-ghs/item/classes/ItemClass.php

@@ -201,7 +201,7 @@ class ItemClass extends BaseClass
                 ], true);
                 $customClassId = $customClass->id ?? 0;
 
-                $currentCpList = PtCpClass::getAllByCondition(['classId' => $ptCpClassId], null, '*', null, true);
+                $currentCpList = PtCpClass::getAllByCondition(['classId' => $ptCpClassId, 'delStatus' => 0], null, '*', null, true);
                 if (!empty($currentCpList)) {
                     foreach ($currentCpList as $currentCp) {
                         $cpId = $currentCp->id ?? 0;