Fixed tabbed dialogs. Removed redundant 'popup' variables.
[fa-stable.git] / inventory / reorder_level.php
index 8eca2ef19a629c473162ed111f43569d3da2bc97..cc0d6979ff33d6f929be01c234df133d1a16a743 100644 (file)
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
 $page_security = 'SA_REORDER';
-if (!@$_GET['popup'])
-       $path_to_root = "..";
-else   
+
+if (@$_GET['page_level'] == 1)
        $path_to_root = "../..";
+else   
+       $path_to_root = "..";
 
 include_once($path_to_root . "/includes/session.inc");
 include_once($path_to_root . "/includes/date_functions.inc");
@@ -72,11 +73,6 @@ $k=0; //row colour counter
 
 $result = get_loc_details($_POST['stock_id']);
 
-if ($page_nested)
-{
-       hidden('popup', @$_GET['popup']);
-}
-
 while ($myrow = db_fetch($result))
 {