Commit a194542e authored by Jérome Perrin's avatar Jérome Perrin

Use 'hasTitle" to check if a title is explictly defined on the movement

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20153 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 26e713bb
...@@ -65,7 +65,10 @@ ...@@ -65,7 +65,10 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>return brain.title or brain.getObject().getExplanationValue().getTitle()\n <value> <string>movement = brain.getObject()\n
if movement.hasTitle():\n
return movement.getTitle()\n
return movement.getExplanationValue().getTitle()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -118,6 +121,7 @@ ...@@ -118,6 +121,7 @@
<string>selection</string> <string>selection</string>
<string>kwd</string> <string>kwd</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>movement</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
658 659
\ 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