From 23a9a8761b7803e2420601b0e859b246f466fd49 Mon Sep 17 00:00:00 2001 From: Matthew Wilson Date: Mon, 8 May 2006 13:06:16 +0000 Subject: [PATCH] corrected a problem with RadioList.pm - where no default value was set, and the form was submitted without selecting one of the radio buttons, getValueFromPost would have returned an empty arrayref. --- lib/WebGUI/Form/RadioList.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/WebGUI/Form/RadioList.pm b/lib/WebGUI/Form/RadioList.pm index 311db7556..b0d289bdc 100644 --- a/lib/WebGUI/Form/RadioList.pm +++ b/lib/WebGUI/Form/RadioList.pm @@ -83,6 +83,9 @@ sub definition { profileEnabled=>{ defaultValue=>1 }, + defaultValue>{ + defaultValue=>'' + }, }); return $class->SUPER::definition($session, $definition); }