Item type dispaincorrectd after change saving.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 22 Nov 2010 21:02:29 +0000 (21:02 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 22 Nov 2010 21:02:29 +0000 (21:02 +0000)
inventory/manage/items.php

index 3e146ca7671327db1cb5f1ae488a133c9b64abfd..1391b825da10ae35f305a6165b31454b3535f813 100644 (file)
@@ -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']);