diff --git a/httpdocs/templates/pages/alerts/alert-stats.template b/httpdocs/templates/pages/alerts/alert-stats.template index bf90ad5aef..16b0a6cb2b 100644 --- a/httpdocs/templates/pages/alerts/alert-stats.template +++ b/httpdocs/templates/pages/alerts/alert-stats.template @@ -644,7 +644,7 @@ const $acknowledgeAlertModal = $('#acknowledge_alert_dialog form').modalHandler({ method: 'post', csrf: PAGE_CSRF, - endpoint: `${http_prefix}/lua/rest/v1/acknowledge/{{ alert_stats.entity }}/alerts.lua`, + endpoint: `${http_prefix}{* datatable.endpoint_acknowledge *}`, beforeSumbit: function (alert) { return { ifid: "{{ ifid }}", row_id: alert.row_id }; }, diff --git a/scripts/lua/modules/alert_store/alert_store.lua b/scripts/lua/modules/alert_store/alert_store.lua index d530362563..aec76a96d9 100644 --- a/scripts/lua/modules/alert_store/alert_store.lua +++ b/scripts/lua/modules/alert_store/alert_store.lua @@ -555,8 +555,6 @@ function alert_store:acknowledge() -- Prepare the final query local q = string.format("UPDATE `%s` SET alert_status = %u WHERE %s", self._table_name, alert_consts.alert_status.acknowledged.alert_status_id, where_clause) - tprint(q) - local res = interface.alert_store_query(q) return res and table.len(res) == 0 end