From 72e992190160dcd36ff349dc786c3eb105a0b131 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sun, 31 Mar 2013 19:09:27 -0500 Subject: [PATCH] fixed problem with hideerror, thanks Ricardo --- VERSION | 2 +- gluon/html.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 99da24b0..865b18db 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.5-stable+timestamp.2013.03.31.15.30.02 +Version 2.4.5-stable+timestamp.2013.03.31.19.08.37 diff --git a/gluon/html.py b/gluon/html.py index 265e11d3..3d406af8 100644 --- a/gluon/html.py +++ b/gluon/html.py @@ -840,9 +840,8 @@ class DIV(XmlComponent): c.latest = self.latest c.session = self.session c.formname = self.formname - if hideerror and not \ - self.attributes.get('hideerror', False): - c['hideerror'] = hideerror + c['hideerror'] = hideerror or \ + self.attributes.get('hideerror', False) newstatus = c._traverse(status, hideerror) and newstatus # for input, textarea, select, option