diff --git a/module/execution/control.php b/module/execution/control.php index 241ecf71b9..eefcebe26a 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -40,7 +40,7 @@ class execution extends control $this->loadModel('project'); - if(!in_array($this->methodName, array('computeburn', 'ajaxgetrecentexecutions'))) + if(!in_array($this->methodName, array('computeburn', 'ajaxgetdropmenu'))) { $this->executions = $this->execution->getPairs(0, 'all', 'nocode'); if(!$this->executions and $this->methodName != 'index' and $this->methodName != 'create' and $this->app->getViewType() != 'mhtml') $this->locate($this->createLink('execution', 'create')); diff --git a/module/product/control.php b/module/product/control.php index 6cae4399b8..7e5d6ff973 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -31,7 +31,7 @@ class product extends control /* Get all products, if no, goto the create page. */ $this->products = $this->product->getPairs('nocode'); - if(empty($this->products) and strpos(',create,index,showerrornone,', $this->methodName) === false and $this->app->getViewType() != 'mhtml') $this->locate($this->createLink('product', 'create')); + if(empty($this->products) and strpos(',create,index,showerrornone,ajaxgetdropmenu,', $this->methodName) === false and $this->app->getViewType() != 'mhtml') $this->locate($this->createLink('product', 'create')); $this->view->products = $this->products; }