Hide deleted resources from calendar sidebox list

This commit is contained in:
Nathan Gray 2013-09-24 15:28:59 +00:00
parent 484a2bf6fc
commit d5d977d60b

View File

@ -791,7 +791,9 @@ class resources_ui
$allowed_list = array();
foreach($cats as $cat_id => $cat_name)
{
if ($resources = $this->bo->so->search(array('cat_id' => $cat_id, 'bookable' => '1'),'res_id'))
if ($resources = $this->bo->so->search(array('cat_id' => $cat_id, 'bookable' => '1'),'res_id',
'','','',False,'AND',false, array('deleted' => null))
)
{
$keys = array();
foreach($resources as $res)