Commit cddf8c23 authored by Bartek Górny's avatar Bartek Górny

Use title or id for category items (not short title)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12816 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cfc73c32
......@@ -79,7 +79,7 @@ from Products.ERP5Type.Cache import CachingMethod\n
\n
def cached_DMSGetItemList(base_category):\n
basecatobject = context.portal_categories.resolveCategory(base_category)\n
return basecatobject.Category_childShortTitleOrIdItemList()\n
return basecatobject.Category_childTitleOrIdItemList()\n
\n
cached_DMSGetItemList = CachingMethod(cached_DMSGetItemList, id=\'DMGetItemListCachedMethodWhatever\')\n
\n
......
......@@ -78,7 +78,7 @@ use with care and caching, may be expensive\n
labelcache = {} # so that we do not resolve all items in every path\n
\n
def getLabel(c):\n
return c.getShortTitle() or c.getId()\n
return c.getTitleOrId()\n
\n
def makeLogicalPathItem(o):\n
retval = []\n
......@@ -174,7 +174,7 @@ return children\n
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Category_childShortTitleOrIdItemList</string> </value>
<value> <string>Category_childTitleOrIdItemList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
......
523
\ No newline at end of file
527
\ No newline at end of file
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