diff --git a/wms/mkt/pricereview-edit.php b/wms/mkt/pricereview-edit.php index 2977b790..eeb071cc 100644 --- a/wms/mkt/pricereview-edit.php +++ b/wms/mkt/pricereview-edit.php @@ -909,7 +909,7 @@ $(function(){ $("input[name='mn_memo']").each(function(){ mnMemoArr.push($(this).val()+"@@"); }) $('#mn_memo_all').val(mnMemoArr); var mnRelateFacilArr = []; - $("td[name='mn_relate_facil']").each(function(){ mnRelateFacilArr.push($(this).html()); }) + $("td[name='mn_relate_facil']").each(function(){ mnRelateFacilArr.push($(this).html().trim()); }) $('#mn_relate_facil_all').val(mnRelateFacilArr); var exNoteArr = []; $("input[name='except_note']").each(function(){ exNoteArr.push($(this).val()); }) diff --git a/wms/mkt/pricereview_renovate-edit.php b/wms/mkt/pricereview_renovate-edit.php index 951081ec..b78b4679 100644 --- a/wms/mkt/pricereview_renovate-edit.php +++ b/wms/mkt/pricereview_renovate-edit.php @@ -984,7 +984,7 @@ $(function(){ $("input[name='mn_memo']").each(function(){ mnMemoArr.push($(this).val()+"@@"); }) $('#mn_memo_all').val(mnMemoArr); var mnRelateFacilArr = []; - $("td[name='mn_relate_facil']").each(function(){ mnRelateFacilArr.push($(this).html()); }) + $("td[name='mn_relate_facil']").each(function(){ mnRelateFacilArr.push($(this).html().trim()); }) $('#mn_relate_facil_all').val(mnRelateFacilArr); var exNoteArr = []; $("input[name='except_note']").each(function(){ exNoteArr.push($(this).val()); }) diff --git a/wms/mkt/pricereview_renovate-record-update.php b/wms/mkt/pricereview_renovate-record-update.php index 2e7e589a..d8807140 100644 --- a/wms/mkt/pricereview_renovate-record-update.php +++ b/wms/mkt/pricereview_renovate-record-update.php @@ -223,6 +223,7 @@ if(isset($_POST['pmstatus'])) { if (empty($iid) && $op_act_arr[$k] == "I") { $to_ins_arr[] = $k; } else { + $option_relate_spec = ""; $tmp_arr = explode("
", $option_relate_facil_arr[$k]); foreach ($tmp_arr as $val) { $option_relate_spec .= substr($val, 0, strpos($val, ".")).",";