Bug 26290: Display the correct default values on the admin page
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 2 Oct 2020 10:07:15 +0000 (12:07 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 2 Oct 2020 13:27:18 +0000 (15:27 +0200)
The "Default configuration" section at the top of the SMTP servers admin page
contains the hardcoded values in Koha::SMTP::Servers->default_setting.

It should be the values from the config (and default to hardcoded values unless defined)

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
admin/smtp_servers.pl

index da2acee..9423404 100755 (executable)
@@ -174,7 +174,7 @@ if ( $op eq 'list' ) {
     my $smtp_servers = Koha::SMTP::Servers->search;
     $template->param(
         servers_count  => $smtp_servers->count,
-        default_config => $smtp_servers->default_setting
+        default_config => $smtp_servers->get_default,
     );
 }