Commit 13b358cb authored by Tomáš Peterka's avatar Tomáš Peterka

[accounting_rjs_test] Fix test mock script bug

parent df8f4cf3
......@@ -23,7 +23,7 @@ def get_object_by_title(portal_type, title):
portal_type=portal_type,
title=SimpleQuery(title=title, comparison_operator='='))
if len(result) == 1:
return result.getObject()
return result[0].getObject()
return None
......
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