From 5ec9e4e55e61df54eac1325e52153b74bad5fb22 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Tue, 29 Jan 2013 10:15:26 +0100 Subject: [PATCH] Small bug when editing inside the tabs in Items. The Select button disappeared. --- inventory/cost_update.php | 3 +++ inventory/prices.php | 4 +++- inventory/purchasing_data.php | 3 +++ inventory/reorder_level.php | 3 +++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/inventory/cost_update.php b/inventory/cost_update.php index ced2038..3afe0b6 100644 --- a/inventory/cost_update.php +++ b/inventory/cost_update.php @@ -118,7 +118,10 @@ $_POST['overhead_cost'] = price_decimal_format($myrow["overhead_cost"], $dec3); amount_row(_("Standard Material Cost Per Unit"), "material_cost", null, "class='tableheader2'", null, $dec1); if (@$_GET['popup']) +{ hidden('_tabs_sel', get_post('_tabs_sel')); + hidden('popup', @$_GET['popup']); +} if ($myrow["mb_flag"]=='M') { amount_row(_("Standard Labour Cost Per Unit"), "labour_cost", null, "class='tableheader2'", null, $dec2); diff --git a/inventory/prices.php b/inventory/prices.php index 123c4bd..f1c63c4 100644 --- a/inventory/prices.php +++ b/inventory/prices.php @@ -185,8 +185,10 @@ if ($Mode == 'Edit') hidden('selected_id', $selected_id); if (@$_GET['popup']) +{ hidden('_tabs_sel', get_post('_tabs_sel')); - + hidden('popup', @$_GET['popup']); +} div_start('price_details'); start_table(TABLESTYLE2); diff --git a/inventory/purchasing_data.php b/inventory/purchasing_data.php index 3f85c03..1b4602e 100644 --- a/inventory/purchasing_data.php +++ b/inventory/purchasing_data.php @@ -197,7 +197,10 @@ if ($Mode =='Edit') br(); hidden('selected_id', $selected_id); if (@$_GET['popup']) +{ hidden('_tabs_sel', get_post('_tabs_sel')); + hidden('popup', @$_GET['popup']); +} start_table(TABLESTYLE2); diff --git a/inventory/reorder_level.php b/inventory/reorder_level.php index e2ace58..c863796 100644 --- a/inventory/reorder_level.php +++ b/inventory/reorder_level.php @@ -74,7 +74,10 @@ $k=0; //row colour counter $result = get_loc_details($_POST['stock_id']); if (@$_GET['popup']) +{ hidden('_tabs_sel', get_post('_tabs_sel')); + hidden('popup', @$_GET['popup']); +} while ($myrow = db_fetch($result)) { -- 2.30.2