File tree 2 files changed +7
-1
lines changed
lib/WebGUI/Workflow/Activity
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 7
7
- fixed #12362: Thingy default Y/N field overly default
8
8
- fixed #12385: UTF-8 characters in Asset title break the Trash
9
9
- fixed ... and the same problem in the Clipboard
10
+ - fixed: UpdateAssetSubscribers workflow activity ERRORs if the group cannot be found.
10
11
11
12
7.10.26
12
13
- fixed: Template diagnostics when called without a session asset.
Original file line number Diff line number Diff line change @@ -71,13 +71,18 @@ See WebGUI::Workflow::Activity::execute() for details.
71
71
sub execute {
72
72
my $self = shift ;
73
73
my $asset = shift ;
74
+ my $session = $self -> session;
74
75
75
76
return unless $asset -> get(' subscriptionGroupId' );
76
77
77
78
my $expireTime = time () + $self -> getTTL();
78
- my $subscriptionGroup = WebGUI::Group-> new($self -> session, $asset -> get(' subscriptionGroupId' ));
79
+ my $subscriptionGroup = WebGUI::Group-> new($session , $asset -> get(' subscriptionGroupId' ));
79
80
80
81
# #Deserialize from scratch
82
+ if (! $subscriptionGroup ) {
83
+ $session -> log -> warn (" Subscription group is missing for assetId: " .$asset -> getId);
84
+ return $self -> COMPLETE;
85
+ }
81
86
my @users = @{ $subscriptionGroup -> getUsers }; # #Cache
82
87
my @usersToDelete = (); # #Cache
83
88
# #Note, we could use grep here, but we can't interrupt if the workflow runs too long
You can’t perform that action at this time.
0 commit comments