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

(-)a/Koha/Item.pm (-2 / +2 lines)
Lines 76-81 sub store { Link Here
76
        $self->itype($self->biblio->biblioitem->itemtype);
76
        $self->itype($self->biblio->biblioitem->itemtype);
77
    }
77
    }
78
78
79
    $self->timestamp(undef) if $self->timestamp; # Maybe move this to Koha::Object->store?
80
79
    my $today = dt_from_string;
81
    my $today = dt_from_string;
80
    unless ( $self->in_storage ) { #AddItem
82
    unless ( $self->in_storage ) { #AddItem
81
        unless ( $self->permanent_location ) {
83
        unless ( $self->permanent_location ) {
Lines 156-163 sub store { Link Here
156
            $self->permanent_location( $self->location );
158
            $self->permanent_location( $self->location );
157
        }
159
        }
158
160
159
        $self->timestamp(undef) if $self->timestamp; # Maybe move this to Koha::Object->store?
160
161
        C4::Biblio::ModZebra( $self->biblionumber, "specialUpdate", "biblioserver" );
161
        C4::Biblio::ModZebra( $self->biblionumber, "specialUpdate", "biblioserver" );
162
162
163
        $self->_after_item_action_hooks({ action => 'modify' });
163
        $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/Koha/Patron.pm (-1 / +2 lines)
Lines 187-192 sub store { Link Here
187
                $self->fixup_cardnumber;
187
                $self->fixup_cardnumber;
188
            }
188
            }
189
189
190
            $self->updated_on(undef) if $self->updated_on; # Maybe move this to Koha::Object->store?
191
190
            unless( $self->category->in_storage ) {
192
            unless( $self->category->in_storage ) {
191
                Koha::Exceptions::Object::FKConstraint->throw(
193
                Koha::Exceptions::Object::FKConstraint->throw(
192
                    broken_fk => 'categorycode',
194
                    broken_fk => 'categorycode',
193
- 

Return to bug 23463