Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
abeverley committed Oct 19, 2023
1 parent a26e9bd commit b93762f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/GADS/Schema/Result/User.pm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ extends 'DBIx::Class::Core';
=cut

__PACKAGE__->load_components("InflateColumn::DateTime");
__PACKAGE__->load_components("InflateColumn::DateTime", "+GADS::DBIC");

=head1 TABLE: C<user>
Expand Down Expand Up @@ -907,8 +907,6 @@ sub update_user
$params{permissions} = []
if exists $params{permissions} && !$params{permissions};

$params{value} = _user_value(\%params);
$values->{value} = _user_value($values);
$self->update($values);

$self->groups($current_user, $params{groups})
Expand Down Expand Up @@ -1140,6 +1138,11 @@ sub for_data_table
$return;
}

sub validate
{ my $self = shift;
$self->value(_user_value({firstname => $self->firstname, surname => $self->surname}));
}

sub export_hash
{ my $self = shift;
# XXX Department, organisation etc not currently exported
Expand Down

0 comments on commit b93762f

Please sign in to comment.