projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoiding redundant passes in Fiscal Year deletion.
[fa-stable.git]
/
inventory
/
cost_update.php
diff --git
a/inventory/cost_update.php
b/inventory/cost_update.php
index 3afe0b6412e26c6d15389a2850b521c23ff902a1..75f04a0e055fd833c4fd63c5d367d613c28b2fb3 100644
(file)
--- a/
inventory/cost_update.php
+++ b/
inventory/cost_update.php
@@
-84,10
+84,8
@@
if (list_updated('stock_id'))
$Ajax->activate('cost_table');
//-----------------------------------------------------------------------------------------
$Ajax->activate('cost_table');
//-----------------------------------------------------------------------------------------
-$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();
@@
-137,8
+135,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);
-
+}
?>
?>