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

(-)a/Koha/Item.pm (-2 lines)
Lines 156-163 sub store { Link Here
156
            $self->permanent_location( $self->location );
156
            $self->permanent_location( $self->location );
157
        }
157
        }
158
158
159
        $self->timestamp(undef) if $self->timestamp; # Maybe move this to Koha::Object->store?
160
161
        C4::Biblio::ModZebra( $self->biblionumber, "specialUpdate", "biblioserver" );
159
        C4::Biblio::ModZebra( $self->biblionumber, "specialUpdate", "biblioserver" );
162
160
163
        $self->_after_item_action_hooks({ action => 'modify' });
161
        $self->_after_item_action_hooks({ action => 'modify' });
(-)a/Koha/Object.pm (-1 / +1 lines)
Lines 155-161 sub store { Link Here
155
                  && $columns_info->{$col}->{datetime_undef_if_invalid} )
155
                  && $columns_info->{$col}->{datetime_undef_if_invalid} )
156
              {
156
              {
157
                  # timestamp
157
                  # timestamp
158
                  # $self->_result()->set_column($col => $columns_info->{$col}->{default_value});
158
                  $self->_result()->set_column($col => $columns_info->{$col}->{default_value});
159
              }
159
              }
160
        }
160
        }
161
    }
161
    }
(-)a/t/db_dependent/Koha/Object.t (-2 / +1 lines)
Lines 58-64 subtest 'is_changed / make_column_dirty' => sub { Link Here
58
    $object->categorycode( $categorycode );
58
    $object->categorycode( $categorycode );
59
    $object->branchcode( $branchcode );
59
    $object->branchcode( $branchcode );
60
    $object->surname("Test Surname");
60
    $object->surname("Test Surname");
61
    $object->store();
61
    $object->store->discard_changes;
62
    is( $object->is_changed(), 0, "Object is unchanged" );
62
    is( $object->is_changed(), 0, "Object is unchanged" );
63
    $object->surname("Test Surname");
63
    $object->surname("Test Surname");
64
    is( $object->is_changed(), 0, "Object is still unchanged" );
64
    is( $object->is_changed(), 0, "Object is still unchanged" );
65
- 

Return to bug 23463