Units of Measure: fixed edition problems when abbreviation contains special characters.
[fa-stable.git] / inventory / reorder_level.php
index e2ace58ab33402975313a827e146e14092ca6544..bd517f251221a18e5a762835ad5c2177c36bc665 100644 (file)
@@ -37,11 +37,8 @@ if (list_updated('stock_id'))
        $Ajax->activate('reorders');
 }
 //------------------------------------------------------------------------------------
-
-$action = $_SERVER['PHP_SELF'];
-if (@$_GET['popup'])
-       $action .= "?stock_id=".get_post('stock_id');
-start_form(false, false, $action);
+if (!@$_GET['popup'])
+       start_form();
 
 if (!isset($_POST['stock_id']))
        $_POST['stock_id'] = get_global_stock_item();
@@ -74,7 +71,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))
 {
@@ -110,8 +110,9 @@ end_table(1);
 div_end();
 submit_center('UpdateData', _("Update"), true, false, 'default');
 
-end_form();
 if (!@$_GET['popup'])
+{
+       end_form();
        end_page(@$_GET['popup'], false, false);
-
+}
 ?>