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

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

Return to bug 23893