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

Support owner with no related person in listboxs

parent 2a3df9dd
......@@ -60,7 +60,7 @@ reference_list = [x.reference for x in\n
select_list=[\'reference\'],\n
portal_type="Person", title=value)]\n
\n
return SimpleQuery(owner=reference_list or -1)\n
return SimpleQuery(owner=reference_list or value or -1)\n
</string> </value>
</item>
<item>
......
......@@ -58,6 +58,7 @@ if owner_id_list:\n
found_user_list = getUserByLogin(context.getPortalObject(), tuple(owner_id_list))\n
if found_user_list:\n
return found_user_list[0].getTitle()\n
return owner_id_list[0]\n
</string> </value>
</item>
<item>
......
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