Fixed page usage type check.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 13 Oct 2009 09:53:42 +0000 (09:53 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 13 Oct 2009 09:53:42 +0000 (09:53 +0000)
sales/inquiry/sales_orders_view.php

index 4e03c1a0ff210eefe0589e3d7455e9356767f464..9a0be7a5ab0c2d139695a5bf9d60fe1da87c3e47 100644 (file)
@@ -35,10 +35,8 @@ if (get_post('type'))
        $trans_type = $_POST['type'];
 elseif (isset($_GET['type']) && $_GET['type'] == ST_SALESQUOTE)
        $trans_type = ST_SALESQUOTE;
-elseif (isset($_GET['type']) && $_GET['type'] == ST_SALESORDER)
-       $trans_type = ST_SALESORDER;
 else
-       $page_security = 'SA_DENIED';
+       $trans_type = ST_SALESORDER;
 
 if ($trans_type == ST_SALESORDER)
 {