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

(-)a/Koha/Patron.pm (+1 lines)
Lines 195-200 sub store { Link Here
195
            # We don't want invalid dates in the db (mysql has a bad habit of inserting 0000-00-00)
195
            # We don't want invalid dates in the db (mysql has a bad habit of inserting 0000-00-00)
196
            $self->dateofbirth(undef) unless $self->dateofbirth;
196
            $self->dateofbirth(undef) unless $self->dateofbirth;
197
            $self->debarred(undef)    unless $self->debarred;
197
            $self->debarred(undef)    unless $self->debarred;
198
            $self->date_renewed(undef) unless $self->date_renewed;
198
199
199
            # Set default values if not set
200
            # Set default values if not set
200
            $self->sms_provider_id(undef) unless $self->sms_provider_id;
201
            $self->sms_provider_id(undef) unless $self->sms_provider_id;
(-)a/Koha/Patrons/Import.pm (-2 / +1 lines)
Lines 513-519 be formatted to the chosen date format. Populates the correctly formatted date o Link Here
513
sub format_dates {
513
sub format_dates {
514
    my ($self, $params) = @_;
514
    my ($self, $params) = @_;
515
515
516
    foreach my $date_type (qw(dateofbirth dateenrolled dateexpiry)) {
516
    foreach my $date_type (qw(dateofbirth dateenrolled dateexpiry date_renewed)) {
517
        my $tempdate = $params->{borrower}->{$date_type} or next();
517
        my $tempdate = $params->{borrower}->{$date_type} or next();
518
        my $formatted_date = eval { output_pref( { dt => dt_from_string( $tempdate ), dateonly => 1, dateformat => 'iso' } ); };
518
        my $formatted_date = eval { output_pref( { dt => dt_from_string( $tempdate ), dateonly => 1, dateformat => 'iso' } ); };
519
519
520
- 

Return to bug 21596