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 Jul 3, 2018
1 parent 41b91a8 commit 2e9b5b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions adm/shop_admin/itemlistupdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
// 실제 번호를 넘김
$k = $_POST['chk'][$i];

if( ! $_POST['ca_id'][$k]) {
alert("기본분류는 반드시 선택해야 합니다.");
}

$sql = "update {$g5['g5_shop_item_table']}
set ca_id = '{$_POST['ca_id'][$k]}',
ca_id2 = '{$_POST['ca_id2'][$k]}',
Expand Down

0 comments on commit 2e9b5b3

Please sign in to comment.