X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fmanage%2Fitems.php;h=add74834a11a29cb1ad5f70c1fbbee507fcc3e79;hb=2198319ddf12a9c3b286a2400aa15d2e72d82b06;hp=ac04293321b4b714c559cc374521a942a9c7ead4;hpb=ebc600101ceab69c06eac4b1bd4d1782af45de05;p=fa-stable.git diff --git a/inventory/manage/items.php b/inventory/manage/items.php index ac042933..add74834 100644 --- a/inventory/manage/items.php +++ b/inventory/manage/items.php @@ -318,6 +318,7 @@ if ($new_item) } else { // Must be modifying an existing item + if (!isset($_POST['NewStockID'])) { $_POST['NewStockID'] = $_POST['stock_id']; $myrow = get_item($_POST['NewStockID']); @@ -339,9 +340,10 @@ else $_POST['no_sale'] = $myrow['no_sale']; $_POST['del_image'] = 0; $_POST['inactive'] = $myrow["inactive"]; - label_row(_("Item Code:"),$_POST['NewStockID']); - hidden('NewStockID', $_POST['NewStockID']); - set_focus('description'); + } + label_row(_("Item Code:"),$_POST['NewStockID']); + hidden('NewStockID', $_POST['NewStockID']); + set_focus('description'); } text_row(_("Name:"), 'description', null, 52, 50); @@ -417,7 +419,7 @@ else table_section_title(_("Other")); // Add image upload for New Item - by Joe -label_row(_("Image File (.jpg)") . ":", ""); +file_row(_("Image File (.jpg)") . ":", 'pic', 'pic'); // Add Image upload for New Item - by Joe $stock_img_link = ""; $check_remove_image = false;