diff --git a/Layout/default/Preorder/Index.php b/Layout/default/Preorder/Index.php index 3df539244..156090fa0 100644 --- a/Layout/default/Preorder/Index.php +++ b/Layout/default/Preorder/Index.php @@ -468,6 +468,9 @@ if(!field) { return; } + if(!$('#filter_' + field).length) { + return; + } let val = $('#filter_' + field).val(); if(val.length) { filter[field] = val; diff --git a/application/Preorder/PreorderController.php b/application/Preorder/PreorderController.php index 5a40fb125..65a83a11d 100644 --- a/application/Preorder/PreorderController.php +++ b/application/Preorder/PreorderController.php @@ -652,7 +652,7 @@ class PreorderController extends mfBaseController { } protected function apiAction() { - if(!$this->me->is(["Admin","netowner","salespartner"])) { + if(!$this->me->is(["Admin","netowner","salespartner","preorderfront"])) { $this->redirect("Dashboard"); } $do = $this->request->do;