Index: branches/version-2/data/class/pages/admin/products/LC_Page_Admin_Products_Category.php
===================================================================
--- branches/version-2/data/class/pages/admin/products/LC_Page_Admin_Products_Category.php	(revision 17207)
+++ branches/version-2/data/class/pages/admin/products/LC_Page_Admin_Products_Category.php	(revision 17226)
@@ -126,6 +126,7 @@
             }
             // 登録商品のチェック
-            $where = "category_id = ? AND del_flg = 0";
-            $count = $objQuery->count("dtb_products", $where, array($_POST['category_id']));
+            $table = "dtb_product_categories AS T1 LEFT JOIN dtb_products AS T2 ON T1.product_id = T2.product_id";
+            $where = "T1.category_id = ? AND T2.del_flg = 0";
+            $count = $objQuery->count($table, $where, array($_POST['category_id']));
             if($count != 0) {
                 $this->arrErr['category_name'] = "※ カテゴリ内に商品が存在するため削除できません。<br>";
Index: branches/version-2/data/class/pages/admin/products/LC_Page_Admin_Products.php
===================================================================
--- branches/version-2/data/class/pages/admin/products/LC_Page_Admin_Products.php	(revision 17202)
+++ branches/version-2/data/class/pages/admin/products/LC_Page_Admin_Products.php	(revision 17226)
@@ -312,4 +312,12 @@
                     // 検索結果の取得
                     $this->arrProducts = $objQuery->select($col, $from, $where, $arrval);
+
+                    // 各商品ごとのカテゴリIDを取得
+                    if (count($this->arrProducts) > 0) {
+                        foreach ($this->arrProducts as $key => $val) {
+                            $this->arrProducts[$key]["categories"] = $objDb->sfGetCategoryId($val["product_id"]);
+                            $objDb->g_category_on = false;
+                        }
+                    }
                 }
             }
