Commit fb501325 authored by Frank Bergmann's avatar Frank Bergmann

- pretty radical replacement of im_category_hierarchy query with

  im_sub_categories
parent 67564f22
......@@ -45,15 +45,7 @@ switch $acs_object_type {
set object_subtype_sql ""
if {$object_subtype_id} {
set object_subtype_sql "
and category_id in (
select child_id
from im_category_hierarchy
where parent_id = :object_subtype_id
UNION
select :object_subtype_id
)
"
set object_subtype_sql "and category_id in ([join [im_sub_categories $object_subtype_id] ","])"
}
# The "dimension" is a list of values to be displayed on top.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment