diff --git a/core/components/wayfinder/wayfinder.class.php b/core/components/wayfinder/wayfinder.class.php index de6c94f..7e85eea 100644 --- a/core/components/wayfinder/wayfinder.class.php +++ b/core/components/wayfinder/wayfinder.class.php @@ -531,6 +531,11 @@ public function getData() { $c->leftJoin('modResourceGroupResource','ResourceGroupResources'); $c->query['distinct'] = 'DISTINCT'; + /* add the complex SQL expression where clause from */ + if ( $this->_config['complexWhere'] ) { + $c->where( $this->_config['complexWhere'] ); + } + /* add the ignore hidden option to the where clause */ if (!$this->_config['ignoreHidden']) { $c->where(array('hidemenu:=' => 0));