From 4823cbef7757420c54b599f0be36f5ede381ea07 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Mon, 13 Jun 2011 10:11:10 +0000 Subject: [PATCH] Keep default value enabled, or validator fails. --- product/Formulator/Widget.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/Formulator/Widget.py b/product/Formulator/Widget.py index 2fcc9016c5..accca9456e 100644 --- a/product/Formulator/Widget.py +++ b/product/Formulator/Widget.py @@ -800,8 +800,8 @@ class SingleItemsWidget(ItemsWidget): items = field.get_value('items', REQUEST=REQUEST, cell=cell) if not items: # single item widget should have at least one child in order to produce - # valid XHTML; disable it so user can not select it - return [self.render_item('', '', '', '', 'disabled="disabled"')] + # valid XHTML; keep it enabled otherwise field validator always fails + return [self.render_item('', '', '', '', '')] # check if we want to select first item if not value and field.get_value('first_item', REQUEST=REQUEST, -- 2.30.9