projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed nested forms in Items tab.
[fa-stable.git]
/
inventory
/
prices.php
diff --git
a/inventory/prices.php
b/inventory/prices.php
index f1c63c40b2b9a52f273a4f84e5495586754678d1..66d3bee099482041a449b56a27ddec6f9c900918 100644
(file)
--- a/
inventory/prices.php
+++ b/
inventory/prices.php
@@
-50,11
+50,8
@@
if (!isset($_POST['curr_abrev']))
}
//---------------------------------------------------------------------------------------------------
}
//---------------------------------------------------------------------------------------------------
-
-$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();
@@
-211,7
+208,9
@@
if ($calculated)
submit_add_or_update_center($selected_id == -1, '', 'both');
div_end();
submit_add_or_update_center($selected_id == -1, '', 'both');
div_end();
-end_form();
if (!@$_GET['popup'])
if (!@$_GET['popup'])
+{
+ end_form();
end_page(@$_GET['popup'], false, false);
end_page(@$_GET['popup'], false, false);
+}
?>
?>