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

(-)a/Koha/SMTP/Server.pm (-4 / +3 lines)
Lines 44-52 sub store { Link Here
44
44
45
    $self->_result->result_source->schema->txn_do(
45
    $self->_result->result_source->schema->txn_do(
46
        sub {
46
        sub {
47
            Koha::SMTP::Servers->search->update( { is_default => 0 },
47
            Koha::SMTP::Servers->search( { id => { '!=' => $self->id } } )
48
                { no_triggers => 1 } )
48
                ->update( { is_default => 0 }, { no_triggers => 1 } )
49
              if $self->is_default;
49
                if $self->is_default;
50
50
51
            $self = $self->SUPER::store;
51
            $self = $self->SUPER::store;
52
        }
52
        }
53
- 

Return to bug 34622