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

(-)a/Koha/Patron.pm (-1 / +1 lines)
Lines 382-388 sub store { Link Here
382
                    $from_object->{dateexpiry} = dt_from_string( $from_object->{dateexpiry} )->ymd
382
                    $from_object->{dateexpiry} = dt_from_string( $from_object->{dateexpiry} )->ymd
383
                        if $from_object->{dateexpiry};
383
                        if $from_object->{dateexpiry};
384
384
385
                    my @skip_fields  = (qw/lastseen updated_on/);
385
                    my @skip_fields = (qw/lastseen updated_on/);
386
                    for my $key ( keys %{$from_storage} ) {
386
                    for my $key ( keys %{$from_storage} ) {
387
                        next if any { /$key/ } @skip_fields;
387
                        next if any { /$key/ } @skip_fields;
388
                        my $storage_value = $from_storage->{$key} // q{};
388
                        my $storage_value = $from_storage->{$key} // q{};
(-)a/t/db_dependent/Koha/Patrons.t (-4 / +12 lines)
Lines 1630-1639 subtest 'BorrowersLog tests' => sub { Link Here
1630
1630
1631
    Koha::ActionLogs->search()->delete();
1631
    Koha::ActionLogs->search()->delete();
1632
    $patron->get_from_storage();
1632
    $patron->get_from_storage();
1633
    $patron->set( { debarred => "" });
1633
    $patron->set( { debarred => "" } );
1634
    $patron->store;
1634
    $patron->store;
1635
    my $log = Koha::ActionLogs->search( { module => 'MEMBERS', action => 'MODIFY', object => $patron->borrowernumber } )->next;
1635
    my $log = Koha::ActionLogs->search(
1636
    isnt( defined $log, "No action log generated where incoming changed column is empty string and value in storage is NULL" );
1636
        {
1637
            module => 'MEMBERS',
1638
            action => 'MODIFY',
1639
            object => $patron->borrowernumber,
1640
        }
1641
    )->next;
1642
    isnt(
1643
        defined $log,
1644
        "No action log generated where incoming changed column is empty string and value in storage is NULL"
1645
    );
1637
};
1646
};
1638
$schema->storage->txn_rollback;
1647
$schema->storage->txn_rollback;
1639
1648
1640
- 

Return to bug 36159