From 5e967ad41328bb6a91196a50268b15fcab59b7bb Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Mon, 22 Nov 2010 21:02:29 +0000 Subject: [PATCH] Item type dispaincorrectd after change saving. --- inventory/manage/items.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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']); -- 2.30.2