Can't try possibily null data in an asset constructor any more, at least not without catching; this throws exceptions now.
This commit is contained in:
parent
95def8a439
commit
096fe5ebaa
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ Renders an asset selector.
|
|||
|
||||
sub toHtml {
|
||||
my $self = shift;
|
||||
my $asset = WebGUI::Asset->newById($self->session, $self->getOriginalValue) || WebGUI::Asset->getRoot($self->session);
|
||||
my $asset = $self->getOriginalValue ? WebGUI::Asset->newById($self->session, $self->getOriginalValue) : WebGUI::Asset->getRoot($self->session);
|
||||
my $url = $asset->getUrl("op=formHelper;sub=assetTree;class=Asset;formId=".$self->get('id'));
|
||||
$url .= ";classLimiter=".$self->get("class") if ($self->get("class"));
|
||||
return WebGUI::Form::Hidden->new($self->session,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue