From b3afa2ab57c724808d4d3e10039f74d775a3edb3 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Wed, 10 Oct 2012 12:10:51 -0500 Subject: [PATCH] fixed impval=0, thanks vp --- VERSION | 2 +- gluon/sqlhtml.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 2a8a8d10..8c022c2b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.1.0 (2012-10-10 12:00:56) dev +Version 2.1.0 (2012-10-10 12:10:48) dev diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index b97c4837..088dc0e4 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -1059,7 +1059,7 @@ class SQLFORM(FORM): xfields.append((row_id,label,inp,comment)) self.custom.dspval[fieldname] = dspval or nbsp - self.custom.inpval[fieldname] = inpval or '' + self.custom.inpval[fieldname] = inpval if not inpval is None else '' self.custom.widget[fieldname] = inp # if a record is provided and found, as is linkto