Commit a024d061 authored by Jérome Perrin's avatar Jérome Perrin

base: disable node on career's functions

by using disable_node instead of filter_node, we can keep the hierarchy and
this is much more understandable when using indented titles for categories
parent 0e53dcb5
......@@ -27,11 +27,11 @@ if context.getSubordination():
function_value = subordination_value.getFunctionValue()
if function_value is not None:
result.extend(getattr(function_value, category_child_item_list_method_id)(
filter_node=1, local_sort_id=local_sort_id_list))
local_sort_id=local_sort_id_list, disable_node=True))
result.extend(getattr(
portal.portal_categories.function,
category_child_item_list_method_id)(
filter_node=1, local_sort_id=local_sort_id_list))
local_sort_id=local_sort_id_list, disable_node=True))
return result
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