Form/* now all use getOriginalValue and getDefaultValue. This resolves the Layout bug where all the check lists could not be unchecked. Tests were updated, but still need a major overhaul.
This commit is contained in:
parent
96b7047d22
commit
173c2a12cd
42 changed files with 173 additions and 76 deletions
|
|
@ -118,7 +118,8 @@ Formats as a link.
|
|||
|
||||
sub getValueAsHtml {
|
||||
my $self = shift;
|
||||
my $asset = WebGUI::Asset->newByDynamicClass($self->session,$self->getDefaultValue);
|
||||
# my $asset = WebGUI::Asset->newByDynamicClass($self->session,$self->getDefaultValue);
|
||||
my $asset = WebGUI::Asset->newByDynamicClass($self->session,$self->getOriginalValue);
|
||||
if (defined $asset) {
|
||||
return '<a href="'.$asset->getUrl.'">'.$asset->getTitle.'</a>';
|
||||
}
|
||||
|
|
@ -148,7 +149,7 @@ Renders an asset selector.
|
|||
|
||||
sub toHtml {
|
||||
my $self = shift;
|
||||
my $asset = WebGUI::Asset->newByDynamicClass($self->session, $self->getDefaultValue) || WebGUI::Asset->getRoot($self->session);
|
||||
my $asset = WebGUI::Asset->newByDynamicClass($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