Bugzilla – Attachment 154845 Details for
Bug 34616
"Edit SMTP server" page - Default SMTP configuration dialog has some issues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34616: Fix showing default server info on edit SMTP server page
Bug-34616-Fix-showing-default-server-info-on-edit-.patch (text/plain), 1.28 KB, created by
Owen Leonard
on 2023-08-25 18:31:48 UTC
(
hide
)
Description:
Bug 34616: Fix showing default server info on edit SMTP server page
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2023-08-25 18:31:48 UTC
Size:
1.28 KB
patch
obsolete
>From 333b90f2cccd93d7f6aa56ef06e63eefe71199bc Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Fri, 25 Aug 2023 16:36:20 +0000 >Subject: [PATCH] Bug 34616: Fix showing default server info on edit SMTP > server page > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > admin/smtp_servers.pl | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/admin/smtp_servers.pl b/admin/smtp_servers.pl >index cd76cc5ff5..54af62db73 100755 >--- a/admin/smtp_servers.pl >+++ b/admin/smtp_servers.pl >@@ -42,6 +42,8 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( > > my @messages; > >+my $smtp_servers = Koha::SMTP::Servers->search; >+ > if ( $op eq 'add' ) { > > my $name = $input->param('smtp_name'); >@@ -95,7 +97,8 @@ elsif ( $op eq 'edit_form' ) { > > if ( $smtp_server ) { > $template->param( >- smtp_server => $smtp_server >+ smtp_server => $smtp_server, >+ default_config => $smtp_servers->get_default, > ); > } > else { >@@ -174,7 +177,6 @@ elsif ( $op eq 'edit_save' ) { > } > > if ( $op eq 'list' ) { >- my $smtp_servers = Koha::SMTP::Servers->search; > $template->param( > servers_count => $smtp_servers->count, > default_config => $smtp_servers->get_default, >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34616
:
154814
|
154838
|
154839
|
154840
|
154844
|
154845
|
154846
|
154960
|
154961
|
154962