changeset 4464:c62c0f383e41

Fix incorrect setting of template in customizing.txt example action
author Richard Jones <richard@users.sourceforge.net>
date Thu, 04 Nov 2010 22:52:56 +0000
parents 1bd86e82422b
children 605f31a596b8
files CHANGES.txt doc/customizing.txt
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Thu Nov 04 22:34:20 2010 +0000
+++ b/CHANGES.txt	Thu Nov 04 22:52:56 2010 +0000
@@ -27,6 +27,9 @@
   from other transactions) see new ConcurrentDBTest for a
   read-modify-update cycle that fails with the old caching behavior.
   (Ralf Schlatterbeck)
+- Fix incorrect setting of template in customizing.txt example action,
+  patch via issue2550682 (thanks John Kristensen)
+
 
 2010-10-08 1.4.16 (r4541)
 
--- a/doc/customizing.txt	Thu Nov 04 22:34:20 2010 +0000
+++ b/doc/customizing.txt	Thu Nov 04 22:52:56 2010 +0000
@@ -4869,10 +4869,10 @@
             '''
             category = self.form['category'].value
             if category == '-1':
-                self.error_message.append('You must select a category of report')
+                self.client.error_message.append('You must select a category of report')
                 return
             # everything's ok, move on to the next page
-            self.template = 'add_page2'
+            self.client.template = 'add_page2'
 
     def init(instance):
         instance.registerAction('page1_submit', Page1SubmitAction)

Roundup Issue Tracker: http://roundup-tracker.org/