Add Items on the Fly. Behavior Changed in FA24. Fixed.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 26 Oct 2017 23:03:42 +0000 (01:03 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 26 Oct 2017 23:03:42 +0000 (01:03 +0200)
inventory/manage/items.php

index a2e2f274ef2d0ba6a104edfd6ab5387f394871d8..77362bcfd0fc73f6b6e4fcab71bcba903c21cacc 100644 (file)
@@ -530,13 +530,13 @@ function item_settings(&$stock_id, $new_item)
        end_outer_table(1);
 
        div_start('controls');
+       if (@$_REQUEST['popup']) hidden('popup', 1);
        if (!isset($_POST['NewStockID']) || $new_item) 
        {
                submit_center('addupdate', _("Insert New Item"), true, '', 'default');
        } 
        else 
        {
-               if (@$_REQUEST['popup']) hidden('popup', 1);
                submit_center_first('addupdate', _("Update Item"), '', 
                        $page_nested ? true : 'default');
                submit_return('select', get_post('stock_id'),