Put back the skipNotification property into Asset.

This commit is contained in:
Colin Kuskie 2010-04-19 11:00:45 -07:00
parent ff1cd9fad8
commit 43413fe75c
2 changed files with 7 additions and 1 deletions

View file

@ -261,6 +261,12 @@ property tagId => (
fieldType => 'guid',
default => 0,
);
property skipNotification => (
autoGenerate => 0,
noFormPost => 1,
fieldType => 'yesNo',
);
has session => (
is => 'ro',
required => 1,

View file

@ -456,7 +456,7 @@ Sets a flag so that developers know whether to send notifications out on certain
sub setSkipNotification {
my $self = shift;
$self->session->db->write("update assetData set skipNotification=1 where assetId=? and revisionDate=?", [$self->getId, $self->get("revisionDate")]);
$self->{_properties}->{skipNotification} = 1;
$self->skipNotification(1);
}
#-------------------------------------------------------------------