Fixed regression in items.php.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 11 Jan 2015 14:28:23 +0000 (15:28 +0100)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 11 Jan 2015 14:28:23 +0000 (15:28 +0100)
inventory/manage/items.php

index 0b069ea3c66702305a50a89ba2e5628175f4b273..54df94bf68969db2202871c05bdb4734385f68a9 100644 (file)
@@ -254,7 +254,7 @@ if (isset($_POST['delete']) && strlen($_POST['delete']) > 1)
        }
 }
 
-function item_settings(&$stock_id, $new_id
+function item_settings(&$stock_id, $new_item
 {
        global $SysPrefs, $path_to_root;
 
@@ -474,7 +474,7 @@ tabbed_content_start('tabs', array(
        switch (get_post('_tabs_sel')) {
                default:
                case 'settings':
-                       item_settings($stock_id, $new_id); 
+                       item_settings($stock_id, $new_item); 
                        break;
                case 'sales_pricing':
                        $_GET['stock_id'] = $stock_id;