[Erp5-report] r20153 - in /erp5/trunk/bt5/erp5_accounting: SkinTemplateItem/portal_skins/er...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Mar 26 15:53:12 CET 2008


Author: jerome
Date: Wed Mar 26 15:53:07 2008
New Revision: 20153

URL: http://svn.erp5.org?rev=20153&view=rev
Log:
Use 'hasTitle" to check if a title is explictly defined on the movement

Modified:
    erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Movement_getExplanationTitle.xml
    erp5/trunk/bt5/erp5_accounting/bt/revision

Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Movement_getExplanationTitle.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Movement_getExplanationTitle.xml?rev=20153&r1=20152&r2=20153&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Movement_getExplanationTitle.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Movement_getExplanationTitle.xml Wed Mar 26 15:53:07 2008
@@ -65,7 +65,10 @@
         </item>
         <item>
             <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>
         </item>
         <item>
@@ -118,6 +121,7 @@
                             <string>selection</string>
                             <string>kwd</string>
                             <string>_getattr_</string>
+                            <string>movement</string>
                           </tuple>
                         </value>
                     </item>

Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=20153&r1=20152&r2=20153&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision Wed Mar 26 15:53:07 2008
@@ -1,1 +1,1 @@
-658
+659




More information about the Erp5-report mailing list