Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
옵션재고관리 일괄 수정시 옵션초기화 되는 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Jan 11, 2021
1 parent 552ac76 commit d983db2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions adm/shop_admin/optionstocklistupdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
// 재고 일괄수정
for ($i=0; $i<$count_post_it_id; $i++)
{
$it_stock_qty = isset($_POST['it_stock_qty'][$i]) ? (int) $_POST['it_stock_qty'][$i] : 0;
$it_noti_qty = isset($_POST['it_noti_qty'][$i]) ? (int) $_POST['it_noti_qty'][$i] : 0;
$it_use = isset($_POST['it_use'][$i]) ? (int) $_POST['it_use'][$i] : 0;
$io_stock_qty = isset($_POST['io_stock_qty'][$i]) ? (int) $_POST['io_stock_qty'][$i] : 0;
$io_noti_qty = isset($_POST['io_noti_qty'][$i]) ? (int) $_POST['io_noti_qty'][$i] : 0;
$io_use = isset($_POST['io_use'][$i]) ? (int) $_POST['io_use'][$i] : 0;
$it_id = isset($_POST['it_id'][$i]) ? safe_replace_regex($_POST['it_id'][$i], 'it_id') : '';
$io_id = isset($_POST['io_id'][$i]) ? preg_replace(G5_OPTION_ID_FILTER, '', $_POST['io_id'][$i]) : '';
$io_type = isset($_POST['io_type'][$i]) ? (int) $_POST['io_type'][$i] : 0;

$sql = "update {$g5['g5_shop_item_option_table']}
set io_stock_qty = '".$it_stock_qty."',
io_noti_qty = '".$it_noti_qty."',
io_use = '".$it_use."'
set io_stock_qty = '".$io_stock_qty."',
io_noti_qty = '".$io_noti_qty."',
io_use = '".$io_use."'
where it_id = '".$it_id."'
and io_id = '".sql_real_escape_string($io_id)."'
and io_type = '".$io_type."' ";
Expand Down

0 comments on commit d983db2

Please sign in to comment.