From 518e42d17c43a34f198ca4779546d72596160726 Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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 Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- 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.39.5