Fixed hidden fields support for ajax driven divs.
[fa-stable.git] / inventory / reorder_level.php
index c863796a6ece9fbff25b16f9a78f59de59e6b56f..c34ba672828771483399891b35b44faa2be37245 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();
@@ -63,7 +60,7 @@ div_end();
 set_global_stock_item($_POST['stock_id']);
 
 div_start('reorders');
-start_table(TABLESTYLE, "width=30%");
+start_table(TABLESTYLE, "width='30%'");
 
 $th = array(_("Location"), _("Quantity On Hand"), _("Re-Order Level"));
 table_header($th);
@@ -113,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);
-
+}
 ?>