projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
When canceling a non finished sales quotation FA should not try to delete record.
[fa-stable.git]
/
inventory
/
reorder_level.php
diff --git
a/inventory/reorder_level.php
b/inventory/reorder_level.php
index c863796a6ece9fbff25b16f9a78f59de59e6b56f..bd517f251221a18e5a762835ad5c2177c36bc665 100644
(file)
--- a/
inventory/reorder_level.php
+++ b/
inventory/reorder_level.php
@@
-37,11
+37,8
@@
if (list_updated('stock_id'))
$Ajax->activate('reorders');
}
//------------------------------------------------------------------------------------
$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();
if (!isset($_POST['stock_id']))
$_POST['stock_id'] = get_global_stock_item();
@@
-113,8
+110,9
@@
end_table(1);
div_end();
submit_center('UpdateData', _("Update"), true, false, 'default');
div_end();
submit_center('UpdateData', _("Update"), true, false, 'default');
-end_form();
if (!@$_GET['popup'])
if (!@$_GET['popup'])
+{
+ end_form();
end_page(@$_GET['popup'], false, false);
end_page(@$_GET['popup'], false, false);
-
+}
?>
?>