From 420fcdeca6b341ca7d45aa5efdbc1c088199bcf9 Mon Sep 17 00:00:00 2001 From: Scott Walters Date: Tue, 17 Aug 2010 12:25:29 -0400 Subject: [PATCH] Use the Form::ReadOnly control rather than the raw interface; WebGUI::FormBuilder::Tab is not a subclass of WebGUI::HTMLForm and doesn't implement raw(). --- lib/WebGUI/Asset/Wobject/Poll.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/Asset/Wobject/Poll.pm b/lib/WebGUI/Asset/Wobject/Poll.pm index f4a7c1f1b..a74767c60 100644 --- a/lib/WebGUI/Asset/Wobject/Poll.pm +++ b/lib/WebGUI/Asset/Wobject/Poll.pm @@ -289,7 +289,11 @@ override getEditForm => sub { value => $self->generateGraph, ); # TODO: Fix graphing plugins to use FormBuilder API - $fb->getTab('graph')->raw(WebGUI::Image::Graph->getGraphingTab($self->session, $config)); + $fb->getTab('graph')->addField( + 'ReadOnly', + value => WebGUI::Image::Graph->getGraphingTab($self->session, $config) + ); + } return $fb;