Ticket #2017 (closed バグ指摘: 修正済)
非公開の商品がお気に入り一覧に表示される
Reported by: | m_uehara | Owned by: | undertree |
---|---|---|---|
Priority: | 中 | Milestone: | EC-CUBE2.13.0 |
Component: | フロント | Version: | 2.12.2 |
Keywords: | Cc: | ||
修正済み: | yes |
Description
再現方法
1.商品をお気に入りに登録します。
2.お気に入りに登録した商品を管理画面で非公開に設定します。
3.マイページのお気に入り一覧に非公開にしたはずの商品が表示されています。
Change History
comment:3 Changed 8 years ago by undertree
- Status changed from assigned to closed
- Resolution set to 修正済
お気に入り一覧の取得条件に「dtb_products.status = 1」を追加しました。
comment:4 Changed 8 years ago by undertree
- Status changed from closed to reopened
- Resolution 修正済 deleted
comment:6 Changed 8 years ago by undertree
- Status changed from reopened to new
操作を間違えました。 大変失礼致しました。
comment:9 Changed 8 years ago by m_uehara
- 修正済み unset
非公開商品は想定通り非表示となっています。
しかし、在庫なし商品を非表示にしようとした際にシステムエラーとなりました。
Fatal error(E_USER_ERROR): DB処理でエラーが発生しました。 SQL: [SELECT f.product_id FROM dtb_customer_favorite_products f inner join dtb_products p using (product_id) WHERE f.customer_id = ? and p.status = 1 AND EXISTS(SELECT * FROM dtb_products_class WHERE product_id = dtb_customer_favorite_products.product_id AND del_flg = 0 AND (stock >= 1 OR stock_unlimited = 1)) ORDER BY f.create_date DESC ] MDB2 Error: unknown error prepare: [Error message: Unable to create prepared statement handle] [Last executed query: DEALLOCATE PREPARE mdb2_statement_pgsql_74c8a47b8b0e0b6bd53ba77c0a77bc318db110a70] [Native message: ERROR: invalid reference to FROM-clause entry for table "dtb_customer_favorite_products" 行 1: ...LECT * FROM dtb_products_class WHERE product_id = dtb_custom... ^ HINT: Perhaps you meant to reference the table alias "f".]
comment:10 Changed 8 years ago by undertree
- Status changed from assigned to closed
- Resolution set to 修正済
大変失礼致しました。 定数NOSTOCK_HIDDENがtrue時のwhereを修正致しました。
comment:11 Changed 8 years ago by h_yoshimoto
- Status changed from closed to reopened
- 修正済み set
- Resolution 修正済 deleted
ご対応ありがとうございます!確認させていただきます。
また、クローズについては運営チームにて行わせていただきます。
よろしくお願いいたします。
comment:12 Changed 8 years ago by h_yoshimoto
- Status changed from reopened to closed
- Resolution set to 修正済
ご対応ありがとうございました。
こちらクローズさせていただきます。
Note: See
TracTickets for help on using
tickets.