Commit 3f5fa871 authored by Jérome Perrin's avatar Jérome Perrin

show category reference if present

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27387 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3ba171f8
...@@ -64,7 +64,7 @@ display_cache = {}\n ...@@ -64,7 +64,7 @@ display_cache = {}\n
\n \n
def display(x):\n def display(x):\n
if x not in display_cache:\n if x not in display_cache:\n
gap_id = x.getId()\n gap_id = x.getReference() or x.getId()\n
if gap_id.isdigit():\n if gap_id.isdigit():\n
display_cache[x] = "%s - %s" % (gap_id, x.getTitle())\n display_cache[x] = "%s - %s" % (gap_id, x.getTitle())\n
else:\n else:\n
......
936 937
\ No newline at end of file \ 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