Index: branches/RC/core/units/general/cat_event_handler.php =================================================================== diff -u -r10288 -r10396 --- branches/RC/core/units/general/cat_event_handler.php (.../cat_event_handler.php) (revision 10288) +++ branches/RC/core/units/general/cat_event_handler.php (.../cat_event_handler.php) (revision 10396) @@ -21,7 +21,7 @@ 'OnDownloadFile' => Array('self' => 'view'), 'OnCancelAction' => Array('self' => true), - + 'OnItemBuild' => Array('self' => true), ); @@ -301,8 +301,8 @@ } if (isset($search_res_ids) && $search_res_ids) { - $type_clauses['search']['include'] = '%1$s.ResourceId IN ('.implode(',', $search_res_ids).') AND PrimaryCat = 1'; - $type_clauses['search']['except'] = '%1$s.ResourceId NOT IN ('.implode(',', $search_res_ids).') AND PrimaryCat = 1'; + $type_clauses['search']['include'] = '%1$s.ResourceId IN ('.implode(',', $search_res_ids).') AND PrimaryCat = 1 AND ('.TABLE_PREFIX.'Category.Status = '.STATUS_ACTIVE.')'; + $type_clauses['search']['except'] = '%1$s.ResourceId NOT IN ('.implode(',', $search_res_ids).') AND PrimaryCat = 1 AND ('.TABLE_PREFIX.'Category.Status = '.STATUS_ACTIVE.')'; } else { $type_clauses['search']['include'] = '0';