Always delete fresh copies of cached objects...
This commit is contained in:
parent
5fdb7d8f02
commit
7f9dacb0d0
1 changed files with 4 additions and 2 deletions
|
|
@ -145,12 +145,14 @@ END {
|
|||
GROUP: foreach my $group (@groupsToDelete) {
|
||||
my $groupId = $group->getId;
|
||||
next GROUP if any { $groupId eq $_ } qw/1 2 3 4 6 7 8 11 12 13 14 pbgroup000000000000015 pbgroup000000000000016 pbgroup000000000000017 /;
|
||||
$group->delete;
|
||||
my $newGroup = WebGUI::Group->new($SESSION, $groupId);
|
||||
$newGroup->delete;
|
||||
}
|
||||
USER: foreach my $user (@usersToDelete) {
|
||||
my $userId = $user->userId;
|
||||
next USER if any { $userId eq $_ } (1,3);
|
||||
$user->delete;
|
||||
my $newUser = WebGUI::User->new($SESSION, $userId);
|
||||
$newUser->delete;
|
||||
}
|
||||
foreach my $stor (@storagesToDelete) {
|
||||
if ($SESSION->id->valid($stor)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue