Commit 6d5b6c3d authored by Yusei Tahara's avatar Yusei Tahara

Do not filter items when resource is not set.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35531 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d78dfceb
...@@ -63,7 +63,7 @@ item_list = getattr(portal_categories.use, method_id)(local_sort_id=(\'int_index ...@@ -63,7 +63,7 @@ item_list = getattr(portal_categories.use, method_id)(local_sort_id=(\'int_index
\n \n
resource = context.getResourceValue()\n resource = context.getResourceValue()\n
if resource is None:\n if resource is None:\n
item_display_list = ()\n item_display_list = item_list\n
else:\n else:\n
selected_use_list = [use_value.getCategoryRelativeUrl() for use_value in resource.getUseValueList()]\n selected_use_list = [use_value.getCategoryRelativeUrl() for use_value in resource.getUseValueList()]\n
item_display_list = [item for item in item_list if item[1] in selected_use_list]\n item_display_list = [item for item in item_list if item[1] in selected_use_list]\n
......
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