Add tagId property, fix cloneFromDb. Fix several tests.
This commit is contained in:
parent
348b34d307
commit
e5affbd0c2
2 changed files with 25 additions and 21 deletions
|
|
@ -243,6 +243,11 @@ property assetSize => (
|
|||
fieldType => 'integer',
|
||||
default => 0,
|
||||
);
|
||||
property tagId => (
|
||||
noFormPost => 1,
|
||||
fieldType => 'guid',
|
||||
default => 0,
|
||||
);
|
||||
has session => (
|
||||
is => 'ro',
|
||||
required => 1,
|
||||
|
|
@ -588,10 +593,9 @@ Returns the new Asset object.
|
|||
|
||||
sub cloneFromDb {
|
||||
my $self = shift;
|
||||
return WebGUI::Asset->new($self->session,
|
||||
return WebGUI::Asset->newById($self->session,
|
||||
$self->getId,
|
||||
$self->get('className'),
|
||||
$self->get('revisionDate')
|
||||
$self->revisionDate
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue