X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Freorder_level.php;h=8eca2ef19a629c473162ed111f43569d3da2bc97;hb=b6ae2ddcd0cbc571edd01157ca1c8d44bbe071ef;hp=bd517f251221a18e5a762835ad5c2177c36bc665;hpb=1571869d54be48452fdbe08f25130972ff0a7b5a;p=fa-stable.git diff --git a/inventory/reorder_level.php b/inventory/reorder_level.php index bd517f25..8eca2ef1 100644 --- a/inventory/reorder_level.php +++ b/inventory/reorder_level.php @@ -21,8 +21,7 @@ include_once($path_to_root . "/includes/ui.inc"); include_once($path_to_root . "/includes/data_checks.inc"); include_once($path_to_root . "/inventory/includes/inventory_db.inc"); -if (!@$_GET['popup']) - page(_($help_context = "Reorder Levels")); +page(_($help_context = "Reorder Levels")); check_db_has_costable_items(_("There are no inventory items defined in the system (Purchased or manufactured items).")); @@ -37,13 +36,16 @@ if (list_updated('stock_id')) $Ajax->activate('reorders'); } //------------------------------------------------------------------------------------ -if (!@$_GET['popup']) - start_form(); + +$action = $_SERVER['PHP_SELF']; +if ($page_nested) + $action .= "?stock_id=".get_post('stock_id'); +start_form(false, false, $action); if (!isset($_POST['stock_id'])) $_POST['stock_id'] = get_global_stock_item(); -if (!@$_GET['popup']) +if (!$page_nested) { echo "