id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	modified_flg
1337	商品マスタ、検索結果をすべて削除でDBエラー	Seasoft	Seasoft	"フォーラムにて taji 様からご報告頂きました。[[BR]]
http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=8098&forum=9
{{{
・現象
管理画面の商品管理->商品マスタで、検索結果をすべて削除しようとすると
システムエラーが発生します。

・再現方法
１．システム設定>パラメータ設定
　　管理モード(ADMIN_MODE)をOn(1)に設定
２．商品管理>商品マスタ
　　この条件で検索するボタンを押す
　　検索結果が1件以上の時に検索結果を全て削除を押す

・原因
/data/class/pages/admin/products/LC_Page_Admin_Products.phpの259行目あたりで
お気に入り商品の削除時に存在しないカラムの条件(del_flg = 0)が指定されている為
エラーになっていると思われます。

site.log
----------------------------------------------------------------------------------------------------
SQL: DELETE FROM dtb_customer_favorite_products WHERE del_flg = 0 AND product_id = ?

MDB2 Error: no such field

prepare: [Error message: Unable to create prepared statement handle]
[Last executed query: DEALLOCATE PREPARE mdb2_statement_pgsql_4d7a6363158c983e2df7dd31ee9dac1b6af20e1b8]
[Native message: ERROR: column ""del_flg"" does not exist
行 1: DELETE FROM dtb_customer_favorite_products WHERE del_flg = 0...
----------------------------------------------------------------------------------------------------

・環境
EC-CUBE：2.11.1
OS：Debian GNU/Linux 6.0.1(squeeze)
PHP：5.3.3-7+squeeze1
PostgreSQL：9.0.3
}}}

r20964"	バグ指摘	closed	低	EC-CUBE2.11.2	管理画面	2.11.1	修正済			1
