diff --git a/lib/WebGUI/AssetVersioning.pm b/lib/WebGUI/AssetVersioning.pm index 6e4f64ede..49dce78a0 100644 --- a/lib/WebGUI/AssetVersioning.pm +++ b/lib/WebGUI/AssetVersioning.pm @@ -481,6 +481,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; } #------------------------------------------------------------------- diff --git a/t/Asset/Wobject/WikiMaster/subscribable.t b/t/Asset/Wobject/WikiMaster/subscribable.t index 443009d5f..40a8d5d8b 100644 --- a/t/Asset/Wobject/WikiMaster/subscribable.t +++ b/t/Asset/Wobject/WikiMaster/subscribable.t @@ -83,7 +83,7 @@ ok( #---------------------------------------------------------------------------- # skip notification ok( !$wiki->get('skipNotification'), 'skipNotification defaults to false' ); -$wiki->setSkipNotification(1); +$wiki->setSkipNotification(); ok( $wiki->get('skipNotification'), 'setSkipNotification sets skipNotification' ); # add revision