From 39550d399fe32888f5b3c6fab413acf3e4d9b125 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 26 Aug 2009 18:40:20 +0000 Subject: [PATCH] Prevent the generateGraph yesNo from being generated twice in the editForm. Fixes bug #10829. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/Wobject/Poll.pm | 15 ++++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index e733c03f7..ecb560d64 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,4 +1,5 @@ 7.7.19 + - fixed #10829: Extra field in Poll Property tab - refactored out JSON collateral module, to use with any module in WebGUI. - fixed #10825: Text and MediumText fields should be LongText - fixed #10808: Ask user about using rich edit option causes error in IE6 diff --git a/lib/WebGUI/Asset/Wobject/Poll.pm b/lib/WebGUI/Asset/Wobject/Poll.pm index cfe7163a9..be1dcf44b 100644 --- a/lib/WebGUI/Asset/Wobject/Poll.pm +++ b/lib/WebGUI/Asset/Wobject/Poll.pm @@ -177,13 +177,14 @@ sub definition { fieldType=>"hidden", defaultValue=>undef, }, - generateGraph=>{ - fieldType=>"yesNo", - defaultValue=>0, - }, - } - }); - return $class->SUPER::definition($session, $definition); + generateGraph => { + fieldType => "yesNo", + defaultValue => 0, + autoGenerate => 0, + }, + } + }); + return $class->SUPER::definition($session, $definition); } #-------------------------------------------------------------------