From 43413fe75ce3c493d147f8451583e9c75c641cb8 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 19 Apr 2010 11:00:45 -0700 Subject: [PATCH] Put back the skipNotification property into Asset. --- lib/WebGUI/Asset.pm | 6 ++++++ lib/WebGUI/AssetVersioning.pm | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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); } #-------------------------------------------------------------------