shish 3 年之前
父節點
當前提交
6cf61d2388
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app-ghs/controllers/ItemMsController.php

+ 1 - 1
app-ghs/controllers/ItemMsController.php

@@ -41,7 +41,7 @@ class ItemMsController extends BaseController
             $hasIds = explode(',', $hasIdString);
         }
         foreach ($ids as $current) {
-            if (in_array($current, $hasIds) == false) {
+            if (in_array($current, $hasIds) == false && $current != $motherId) {
                 $hasIds[] = $current;
             }
         }