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

(-)a/admin/smtp_servers.pl (-3 / +4 lines)
Lines 42-47 my ( $template, $borrowernumber, $cookie ) = get_template_and_user( Link Here
42
42
43
my @messages;
43
my @messages;
44
44
45
my $smtp_servers = Koha::SMTP::Servers->search;
46
45
if ( $op eq 'add' ) {
47
if ( $op eq 'add' ) {
46
48
47
    my $name       = $input->param('smtp_name');
49
    my $name       = $input->param('smtp_name');
Lines 95-101 elsif ( $op eq 'edit_form' ) { Link Here
95
97
96
    if ( $smtp_server ) {
98
    if ( $smtp_server ) {
97
        $template->param(
99
        $template->param(
98
            smtp_server => $smtp_server
100
            smtp_server => $smtp_server,
101
            default_config => $smtp_servers->get_default,
99
        );
102
        );
100
    }
103
    }
101
    else {
104
    else {
Lines 174-180 elsif ( $op eq 'edit_save' ) { Link Here
174
}
177
}
175
178
176
if ( $op eq 'list' ) {
179
if ( $op eq 'list' ) {
177
    my $smtp_servers = Koha::SMTP::Servers->search;
178
    $template->param(
180
    $template->param(
179
        servers_count  => $smtp_servers->count,
181
        servers_count  => $smtp_servers->count,
180
        default_config => $smtp_servers->get_default,
182
        default_config => $smtp_servers->get_default,
181
- 

Return to bug 34616