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

(-)a/C4/Letters.pm (-1 / +2 lines)
Lines 626-632 sub GetPreparedLetter { Link Here
626
         return;
626
         return;
627
    my $want_librarian = $params{want_librarian};
627
    my $want_librarian = $params{want_librarian};
628
    if ($want_librarian) {
628
    if ($want_librarian) {
629
        $objects->{librarian} = Koha::Patrons->find( C4::Context->userenv->{number} );
629
        my $userenv = C4::Context->userenv;
630
        $objects->{librarian} = Koha::Patrons->find( C4::Context->userenv->{number} ) if ($userenv);
630
    }
631
    }
631
632
632
    # Best guess at language 'default' notice is written for include handling
633
    # Best guess at language 'default' notice is written for include handling
(-)a/Koha/Ticket.pm (-2 / +2 lines)
Lines 176-182 sub store { Link Here
176
        }
176
        }
177
    } else {
177
    } else {
178
        my %updated_columns = $self->_result->get_dirty_columns;
178
        my %updated_columns = $self->_result->get_dirty_columns;
179
        return $self->SUPER::store unless %updated_columns;
179
        $self->SUPER::store;
180
        $self->discard_changes;
180
181
181
        $assignee = ( exists $updated_columns{assignee_id} ) ? $self->assignee : undef;
182
        $assignee = ( exists $updated_columns{assignee_id} ) ? $self->assignee : undef;
182
    }
183
    }
183
- 

Return to bug 36758