From 3a57a3833e32f69d78200ddcd0d43bfa1fa9fde8 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Fri, 27 Oct 2017 01:03:42 +0200 Subject: [PATCH] Add Items on the Fly. Behavior Changed in FA24. Fixed. --- inventory/manage/items.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory/manage/items.php b/inventory/manage/items.php index a2e2f274..77362bcf 100644 --- a/inventory/manage/items.php +++ b/inventory/manage/items.php @@ -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'), -- 2.30.2