Fixed getRoot, getDefault, and getNotFound to pass them a session

This commit is contained in:
Roy Johnson 2006-01-17 16:13:16 +00:00
parent 6eb252d907
commit cd45f88e9f
4 changed files with 4 additions and 4 deletions

View file

@ -95,7 +95,7 @@ Renders an asset selector.
sub toHtml {
my $self = shift;
my $asset = WebGUI::Asset->newByDynamicClass($self->get("value")) || WebGUI::Asset->getRoot;
my $asset = WebGUI::Asset->newByDynamicClass($self->get("value")) || WebGUI::Asset->getRoot($self->session);
return WebGUI::Form::Hidden->new(
name=>$self->get("name"),
extras=>$self->get("extras"),