From: Janusz Dobrowolski Date: Wed, 10 Feb 2010 14:57:57 +0000 (+0000) Subject: [0000202] Unable to change item type during edition. X-Git-Tag: 2.3-final~974 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=0f7ba1f354c9737d26135f9a31340da0b07eacdd;p=fa-stable.git [0000202] Unable to change item type during edition. --- diff --git a/inventory/manage/items.php b/inventory/manage/items.php index ac042933..cef96238 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);