View | Details | Raw Unified | Return to bug 18461
Collapse All | Expand All

(-)a/Koha/Patron/Modification.pm (-1 / +1 lines)
Lines 104-110 sub approve { Link Here
104
104
105
    # Take care of extended attributes
105
    # Take care of extended attributes
106
    if ( $self->extended_attributes ) {
106
    if ( $self->extended_attributes ) {
107
        $extended_attributes = try { decode_json( $self->extended_attributes ) }
107
        $extended_attributes = try { from_json( $self->extended_attributes ) }
108
        catch {
108
        catch {
109
            Koha::Exceptions::Patron::Modification::InvalidData->throw(
109
            Koha::Exceptions::Patron::Modification::InvalidData->throw(
110
                'The passed extended_attributes is not valid JSON');
110
                'The passed extended_attributes is not valid JSON');
(-)a/Koha/Patron/Modifications.pm (-2 / +1 lines)
Lines 97-103 sub pending { Link Here
97
    while ( my $row = $sth->fetchrow_hashref() ) {
97
    while ( my $row = $sth->fetchrow_hashref() ) {
98
        foreach my $key ( keys %$row ) {
98
        foreach my $key ( keys %$row ) {
99
            if ( defined $row->{$key} && $key eq 'extended_attributes' ) {
99
            if ( defined $row->{$key} && $key eq 'extended_attributes' ) {
100
                my $attributes = decode_json( $row->{$key} );
100
                my $attributes = from_json( $row->{$key} );
101
                my @pending_attributes;
101
                my @pending_attributes;
102
                foreach my $attr ( @{$attributes} ) {
102
                foreach my $attr ( @{$attributes} ) {
103
                    push @pending_attributes,
103
                    push @pending_attributes,
104
- 

Return to bug 18461