From: Janusz Dobrowolski Date: Mon, 22 Nov 2010 21:02:29 +0000 (+0000) Subject: Item type dispaincorrectd after change saving. X-Git-Tag: v2.4.2~19^2~475 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=5e967ad41328bb6a91196a50268b15fcab59b7bb;p=fa-stable.git Item type dispaincorrectd after change saving. --- diff --git a/inventory/manage/items.php b/inventory/manage/items.php index 3e146ca7..1391b825 100644 --- a/inventory/manage/items.php +++ b/inventory/manage/items.php @@ -276,7 +276,8 @@ if ($new_item) } else { // Must be modifying an existing item - if (!isset($_POST['NewStockID'])) { + if (get_post('NewStockID') != get_post('stock_id')) { // first item display + $_POST['NewStockID'] = $_POST['stock_id']; $myrow = get_item($_POST['NewStockID']);