id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	modified_flg
2486	v2.13 管理画面 受注情報編集画面の商品の変更ボタンで商品追加になる	kimoto	somebody	"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


        //既にあるデータは１つだけ数量を１増やす
        $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])) {


ここに記述されている「既にあるデータは１つだけ数量を１増やす」の仕様がどうなのだろうか？

つまり、「変更」ボタンをクリックし、商品選択ポップアップ画面で元の商品と同じ商品を選択した場合、
・「数量を１増やす」
・「元のまま変化なし」
のいずれを仕様とするかということになる。
}}}"	バグ指摘	new	中	EC-CUBE2.13.3	管理画面	2.13.0				0
