Small fix in items.php
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 9 Mar 2009 12:05:59 +0000 (12:05 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 9 Mar 2009 12:05:59 +0000 (12:05 +0000)
CHANGELOG.txt
inventory/manage/items.php

index ad0ea1170514ff70430aef7c9c1584ff260cc971..6a5cc5f26dff9cb8ff200850fc3f6f2c7ed47e6b 100644 (file)
@@ -24,6 +24,8 @@ $ -> Affected files
 $ /admin/users.php
 # Changed page_security level to 1
 $ /admin/display_prefs.php
+# Fixed item code display after item delete
+$ /inventory/manage/items.php
 # Cosmetic cleanup
 $ /includes/session.inc
 
index fdc55902f1a2dbcae94508d65e8d1acc62177e7d..f8370c72cae7e4dd47b3197cf7090b7efbd44f0c 100644 (file)
@@ -245,6 +245,7 @@ if (isset($_POST['delete']) && strlen($_POST['delete']) > 1)
                $_POST['stock_id'] = '';
                clear_data();
                set_focus('stock_id');
+               $new_item = true;
                $Ajax->activate('_page_body');
        }
 }