From bce5e6afab1ac5df3b1ea53d81ca25f209d64b3b Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 19 Jan 2011 14:37:09 -0800 Subject: [PATCH] Subscribable aspect dies if addRevision is called without a hashref of new properties for the new revision. --- lib/WebGUI/AssetAspect/Subscribable.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/AssetAspect/Subscribable.pm b/lib/WebGUI/AssetAspect/Subscribable.pm index a3842f6d9..3fee842f6 100644 --- a/lib/WebGUI/AssetAspect/Subscribable.pm +++ b/lib/WebGUI/AssetAspect/Subscribable.pm @@ -84,7 +84,7 @@ Override addRevision to set skipNotification to 0 for each new revision. sub addRevision { my $self = shift; - my $properties = shift; + my $properties = shift || {}; $properties->{ skipNotification } = 0;