Skip to content

Commit

Permalink
Fix report groups not saved on initial create
Browse files Browse the repository at this point in the history
  • Loading branch information
abeverley committed Sep 22, 2024
1 parent f4f87ef commit 1d3e822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/GADS/Schema/ResultSet/Report.pm
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ sub create_report

my @user_groups = $args->{user}->groups;

my $groups = [ map { { group_id => $_->id } } @{ $args->{user_groups} } ];
my $groups = [ map { { group_id => $_ } } @{ $args->{groups} } ];
my $layouts = [ map { { layout_id => $_ } } @{ $args->{layouts} } ];

my $report = $self->create({
Expand Down

0 comments on commit 1d3e822

Please sign in to comment.