Fixed item settings display after data update in Items.
authorJanusz Dobrowolski <janusz@frontaccouting.eu>
Mon, 6 Jun 2011 10:20:47 +0000 (12:20 +0200)
committerJanusz Dobrowolski <janusz@frontaccouting.eu>
Mon, 6 Jun 2011 10:20:47 +0000 (12:20 +0200)
inventory/manage/items.php

index 87987f7ee6928cc7241af4346b1bcc7d13232f5d..b270f918ab05d1958d3ff85d5db836986d357af3 100644 (file)
@@ -276,7 +276,7 @@ if ($new_item)
 } 
 else 
 { // Must be modifying an existing item
-       if (get_post('NewStockID') != get_post('stock_id')) { // first item display
+       if (get_post('NewStockID') != get_post('stock_id') || get_post('addupdate')) { // first item display
 
                $_POST['NewStockID'] = $_POST['stock_id'];