From e3a7dfd319cb8bcc3c6eaac2d9f95db2cffa9096 Mon Sep 17 00:00:00 2001 From: kagla Date: Thu, 1 Jul 2021 10:42:11 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B4=80=EB=A0=A8=EC=83=81=ED=92=88=EC=9D=84?= =?UTF-8?q?=20=EC=82=AD=EC=A0=9C=ED=95=9C=20=EB=92=A4=EC=97=90=20=EA=B2=BD?= =?UTF-8?q?=EA=B3=A0=EA=B0=80=20=EB=85=B8=EC=B6=9C=EB=90=98=EC=96=B4=20?= =?UTF-8?q?=EB=93=B1=EB=A1=9D,=20=EC=88=98=EC=A0=95=20=EC=97=86=EC=9D=B4?= =?UTF-8?q?=20=EA=B4=80=EB=A0=A8=EC=83=81=ED=92=88=EB=A7=8C=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C=EB=90=A0=20=EC=88=98=20=EC=9E=88=EB=8A=94=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95=20(squared2=EB=8B=98,210617)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/itemformupdate.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/adm/shop_admin/itemformupdate.php b/adm/shop_admin/itemformupdate.php index a4c814f58..73e4c790a 100644 --- a/adm/shop_admin/itemformupdate.php +++ b/adm/shop_admin/itemformupdate.php @@ -218,6 +218,10 @@ if ($w == "" || $w == "u") @set_cookie("ck_origin", stripslashes($it_origin), time() + 86400*31); } +// 관련상품을 삭제한 뒤에 경고가 노출되어 등록, 수정 없이 관련상품만 삭제될 수 있는 오류 수정 (squared2님,210617) +// 포인트 비율 값 체크 +if(($it_point_type == 1 || $it_point_type == 2) && ($it_point < 0 || $it_point > 99)) + alert("포인트 비율을 0과 99 사이의 값으로 입력해 주십시오."); // 관련상품을 우선 삭제함 sql_query(" delete from {$g5['g5_shop_item_relation_table']} where it_id = '$it_id' "); @@ -287,10 +291,6 @@ for($i=0; $i<$count_ii_article; $i++) { } $it_info_value = addslashes(serialize($value_array)); -// 포인트 비율 값 체크 -if(($it_point_type == 1 || $it_point_type == 2) && $it_point > 99) - alert("포인트 비율을 0과 99 사이의 값으로 입력해 주십시오."); - $it_name = isset($_POST['it_name']) ? strip_tags(clean_xss_attributes(trim($_POST['it_name']))) : ''; // KVE-2019-0708