From cda213f38c452d3862eb47889e6ec67dd0fc09b8 Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Sat, 11 Feb 2012 23:06:24 -0600 Subject: [PATCH] fixed issue 647, problem with is_in_db and multiple, thanks Manuele Presenti --- VERSION | 2 +- gluon/validators.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 648bfd75..6f1471a7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.4 (2012-02-09 11:21:10) stable +Version 1.99.4 (2012-02-11 23:04:52) stable diff --git a/gluon/validators.py b/gluon/validators.py index 276013da..79ba4d61 100644 --- a/gluon/validators.py +++ b/gluon/validators.py @@ -466,6 +466,7 @@ class IS_IN_DB(Validator): items.sort(options_sorter) if zero and not self.zero is None and not self.multiple: items.insert(0,('',self.zero)) + self.options() # return items def __call__(self, value): @@ -479,7 +480,7 @@ class IS_IN_DB(Validator): if isinstance(self.multiple,(tuple,list)) and \ not self.multiple[0]<=len(values)