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
" AND " \\\n
"found_movement.portal_type=\'Purchase Packing List Line\'" % \\\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>
</item>
<item>
......@@ -127,8 +127,7 @@ return [q.getUrlString() for q in catalog_query]\n
<string>state_string</string>
<string>tuple</string>
<string>catalog_query</string>
<string>append</string>
<string>$append0</string>
<string>$list0</string>
<string>_getiter_</string>
<string>q</string>
</tuple>
......
174
\ No newline at end of file
175
\ 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