Bugzilla – Attachment 114948 Details for
Bug 27356
Don't hide the SMTP servers table when last displayed is deleted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27356: Don't hide the SMTP servers table when last displayed is deleted
Bug-27356-Dont-hide-the-SMTP-servers-table-when-la.patch (text/plain), 1.68 KB, created by
Fridolin Somers
on 2021-01-08 08:45:51 UTC
(
hide
)
Description:
Bug 27356: Don't hide the SMTP servers table when last displayed is deleted
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2021-01-08 08:45:51 UTC
Size:
1.68 KB
patch
obsolete
>From 0ed3197a7b6cba65bb3cfbfc5edfc8e578df0c6b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 7 Jan 2021 11:13:48 +0100 >Subject: [PATCH] Bug 27356: Don't hide the SMTP servers table when last > displayed is deleted > >Found on bug 27251 which was mimicking SMTP server code for QOTD. > >To recreate: >Create a SMTP server with name "a" >Create a SMTP server with name "aa" > >Filter by "aa" >=> Only 1 row displayed > >Delete it, confirm >=> The table disappears > >Note that we could re-add this test when bug 27353 will be pushed, as >recordsTotal will contain the unfiltered number of records in the DB. > >Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt | 3 --- > 1 file changed, 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt >index ca915b2038..506fb7fb1f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt >@@ -380,9 +380,6 @@ SMTP servers > url: "/api/v1/config/smtp_servers/"+smtp_server_id > }).success(function() { > window.smtp_servers.api().ajax.reload(function (data) { >- if (data.recordsTotal == 0) { >- $("#smtp_servers_wrapper").hide(); >- } > $("#smtp_action_result_dialog").hide(); > $("#smtp_delete_success").html(_("Server '%s' deleted successfully.").format(smtp_server_name)).show(); > }); >-- >2.30.0
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 27356
:
114904
|
114948
|
115000