pull permission tests out of Asset.t. Fix getName.

This commit is contained in:
Colin Kuskie 2010-01-21 20:45:58 -08:00
parent 52d5883b77
commit 143e2e0d7b
2 changed files with 20 additions and 175 deletions

View file

@ -1259,7 +1259,7 @@ Returns the human readable name of the asset.
sub getName {
my $self = shift;
return WebGUI::International->new($self->session, 'Asset')->get($self->getAttribute('assetName'));
return WebGUI::International->new($self->session, 'Asset')->get(@{ $self->assetName });
}