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

(-)a/Koha/Patron.pm (-11 / +2 lines)
Lines 1571-1590 sub attributes_from_api { Link Here
1571
1571
1572
    $attrs = $self->SUPER::attributes_from_api( $attrs );
1572
    $attrs = $self->SUPER::attributes_from_api( $attrs );
1573
1573
1574
    if ( exists $attrs->{lost} ) {
1575
        $attrs->{lost} = ($attrs->{lost}) ? 1 : 0;
1576
    }
1577
1578
    if ( exists $attrs->{ gonenoaddress} ) {
1579
        $attrs->{gonenoaddress} = ($attrs->{gonenoaddress}) ? 1 : 0;
1580
    }
1581
1582
    if ( exists $attrs->{lastseen} ) {
1574
    if ( exists $attrs->{lastseen} ) {
1583
        $attrs->{lastseen} = output_pref({ str => $attrs->{lastseen}, dateformat => 'sql' });
1575
        $attrs->{lastseen} = dt_from_string($attrs->{lastseen});
1584
    }
1576
    }
1585
1577
1586
    if ( exists $attrs->{updated_on} ) {
1578
    if ( exists $attrs->{updated_on} ) {
1587
        $attrs->{updated_on} = output_pref({ str => $attrs->{updated_on}, dateformat => 'sql' });
1579
        $attrs->{updated_on} = dt_from_string($attrs->{updated_on});
1588
    }
1580
    }
1589
1581
1590
    return $attrs;
1582
    return $attrs;
1591
- 

Return to bug 23893