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().
This commit is contained in:
Scott Walters 2010-08-17 12:25:29 -04:00
parent ba953a6526
commit 420fcdeca6

View file

@ -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;