- fix [ 1234051 ] Recursive loops in addGroupsToGroups

- Added handling for an exception in recurring payment processing where there
   was missing data causing a fatal error.
This commit is contained in:
JT Smith 2005-10-14 21:28:38 +00:00
parent 5fb251d01f
commit c7781bdd66
4 changed files with 18 additions and 7 deletions

View file

@ -81,6 +81,10 @@ sub addGroupsToGroups {
my $recursive = isIn($toGid, @{getGroupsInGroup($gid,1)});
unless ($isIn || $recursive) {
WebGUI::SQL->write("insert into groupGroupings (groupId,inGroup) values (".quote($gid).",".quote($toGid).")");
my $cache = WebGUI::Cache->new("groups_in_group_".$gid);
$cache->delete if (defined $cache);
$cache = WebGUI::Cache->new("groups_in_group_".$toGid);
$cache->delete if (defined $cache);
}
}
}