Skip to content

Commit

Permalink
use deep clone to copy also inner list
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Oct 6, 2021
1 parent 5ba0c54 commit dd0eccd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/Users.pm
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ use MIME::Base64 qw(encode_base64);
use Digest::MD5;
use Digest::SHA1 qw(sha1);
use Data::Dumper;
use Storable qw(dclone);

$Data::Dumper::Sortkeys = 1;
$Data::Dumper::Terse = 1;
Expand Down Expand Up @@ -2405,8 +2406,7 @@ sub CreateGroupOrg {
}

# save first map for later checks of modification (in Commit)
my %org_group = %group_in_work;
$group_in_work{"org_group"} = \%org_group;
$group_in_work{"org_group"} = dclone(\%group_in_work);
}
}

Expand Down

0 comments on commit dd0eccd

Please sign in to comment.