diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index 37b9d60c1..5fde8666a 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -261,6 +261,12 @@ property tagId => ( fieldType => 'guid', default => 0, ); +property skipNotification => ( + autoGenerate => 0, + noFormPost => 1, + fieldType => 'yesNo', + ); + has session => ( is => 'ro', required => 1, diff --git a/lib/WebGUI/AssetVersioning.pm b/lib/WebGUI/AssetVersioning.pm index b9ebe8d5e..9674e1e5e 100644 --- a/lib/WebGUI/AssetVersioning.pm +++ b/lib/WebGUI/AssetVersioning.pm @@ -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); } #-------------------------------------------------------------------