-if (isset($_GET['stock_id'])){
- $_POST['stock_id'] = $_GET['stock_id'];
- page(_($help_context = "Inventory Item Status"), true);
-} else {
- page(_($help_context = "Inventory Item Status"));
+if (!@$_GET['popup'])
+{
+ if (isset($_GET['stock_id'])){
+ page(_($help_context = "Inventory Item Status"), true);
+ } else {
+ page(_($help_context = "Inventory Item Status"));
+ }