Updated FormListEquiv.t, all tests pass

fix class method in DatabaseLink.pm
fix accessor method in Form/DatabaseLink.pm
This commit is contained in:
Colin Kuskie 2006-01-16 00:42:15 +00:00
parent e1a90f66fd
commit 6d9ed4b3cd
3 changed files with 75 additions and 58 deletions

View file

@ -192,6 +192,7 @@ A reference to the current session.
=cut
sub getList {
my $class = shift;
my $session = shift;
my $list = $session->db->buildHashRef("select databaseLinkId, title from databaseLink order by title");
my $i18n = WebGUI::International->new($session);

View file

@ -107,7 +107,7 @@ Renders a database connection picker control.
sub toHtml {
my $self = shift;
$self->get("options") = WebGUI::DatabaseLink->getList($self->session);
$self->set("options", WebGUI::DatabaseLink->getList($self->session));
return $self->SUPER::toHtml();
}