Commit 807de977 authored by Romain Courteaud's avatar Romain Courteaud

Do not return empty url.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41226 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f74f24f7
...@@ -77,7 +77,7 @@ catalog_query = portal.portal_catalog(\n ...@@ -77,7 +77,7 @@ catalog_query = portal.portal_catalog(\n
" AND " \\\n " AND " \\\n
"found_movement.portal_type=\'Purchase Packing List Line\'" % \\\n "found_movement.portal_type=\'Purchase Packing List Line\'" % \\\n
(state_string,))\n (state_string,))\n
return [q.getUrlString() for q in catalog_query]\n return [q.getUrlString() for q in catalog_query if q.getUrlString()]\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -127,8 +127,7 @@ return [q.getUrlString() for q in catalog_query]\n ...@@ -127,8 +127,7 @@ return [q.getUrlString() for q in catalog_query]\n
<string>state_string</string> <string>state_string</string>
<string>tuple</string> <string>tuple</string>
<string>catalog_query</string> <string>catalog_query</string>
<string>append</string> <string>$list0</string>
<string>$append0</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>q</string> <string>q</string>
</tuple> </tuple>
......
174 175
\ 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