Changeset 20980


Ignore:
Timestamp:
2011/06/17 17:08:44 (13 years ago)
Author:
habu
Message:

fix #1359 注文管理画面の1つ目の受注商品の変更操作をすると、変更されずに受注商品追加になってしまう

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/Smarty/templates/admin/order/product_select.tpl

    r20941 r20980  
    3838    var class2_id = document.getElementById(class2).value; 
    3939    var product_class_id = document.getElementById("product_class_id" + product_id).value; 
    40  
    41     <!--{if $tpl_no != ''}--> 
    42     var opner_product_id = 'edit_product_id'; 
    43     var opner_product_class_id = 'edit_product_class_id'; 
    44     fm1.getElementById("no").value = escape('<!--{$tpl_no}-->'); 
    45     <!--{else}--> 
    4640    var opner_product_id = 'add_product_id'; 
    4741    var opner_product_class_id = 'add_product_class_id'; 
    48     <!--{/if}--> 
    49  
     42    var tpl_no = '<!--{$tpl_no}-->'; 
     43 
     44    if (tpl_no != '') { 
     45        opner_product_id = 'edit_product_id'; 
     46        opner_product_class_id = 'edit_product_class_id'; 
     47        fm1.getElementById("no").value = escape('<!--{$tpl_no}-->'); 
     48    } 
    5049    if (document.getElementById(class1).type == 'select-one' && class1_id == '') { 
    5150        err_text = class_name1 + "を選択してください。\n"; 
Note: See TracChangeset for help on using the changeset viewer.