Ticket #2486 (new バグ指摘) — at Version 2

Opened 10 years ago

Last modified 9 years ago

v2.13 管理画面 受注情報編集画面の商品の変更ボタンで商品追加になる

Reported by: kimoto Owned by: somebody
Priority: Milestone: EC-CUBE2.13.3
Component: 管理画面 Version: 2.13.0
Keywords: Cc:
修正済み: yes

Description (last modified by snitta) (diff)

 http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=14064&forum=9&post_id=63124#forumpost63124

受注情報に表示される商品の変更ボタンをクリックすると、商品選択ポップアップ画面を表示する。ここで商品を決定する。サブミットを行うproduct_select.tplのjava script:func_submitにおいて
        var opner_product_id = 'add_product_id';
        var opner_product_class_id = 'add_product_class_id';
.
.

        fm1.getElementById(opner_product_id).value = product_id;
        fm1.getElementById(opner_product_class_id).value = product_class_id;

        fm.mode.value = 'select_product_detail';
        fm.anchor_key.value = 'order_products';
        fm.submit();
とあり、「商品の追加」「変更」に関わらず、必ず商品追加として処理される。

 http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=14064&forum=9&post_id=63124#forumpost63124

その後、調べてみました。

変更の場合、LC_Page_Admin_Order_Edit.phpに変更として渡っているようです。
(最初の投稿内容は、誤りです。)
となると、
関数 shipmentEditProduct


        //既にあるデータは1つだけ数量を1増やす
        $pre_shipment_product_class_id = $arrShipmentProducts['shipment_product_class_id'][$select_shipping_id][$change_no];
        if ($pre_shipment_product_class_id == $edit_product_class_id) {
            $arrShipmentProducts['shipment_quantity'][$select_shipping_id][$change_no] ++;
        } elseif (in_array($edit_product_class_id, $arrShipmentProducts['shipment_product_class_id'][$select_shipping_id])) {


ここに記述されている「既にあるデータは1つだけ数量を1増やす」の仕様がどうなのだろうか?

つまり、「変更」ボタンをクリックし、商品選択ポップアップ画面で元の商品と同じ商品を選択した場合、
・「数量を1増やす」
・「元のまま変化なし」
のいずれを仕様とするかということになる。

Change History

comment:1 Changed 10 years ago by h_yoshimoto

  • Milestone changed from EC-CUBE2.13.2 to EC-CUBE2.13.3

comment:2 Changed 10 years ago by snitta

  • Description modified (diff)

追加の報告がありましたので説明に追記致しました。

Note: See TracTickets for help on using tickets.