From 720ed5f67d57802f4b1dee340680ccce72a2e5ec Mon Sep 17 00:00:00 2001 From: Mohammad Zubair Ali Date: Wed, 7 Feb 2024 16:30:21 +0530 Subject: [PATCH] fixed sonar issue --- js/qsm-admin.js | 2 +- php/admin/options-page-email-tab.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/js/qsm-admin.js b/js/qsm-admin.js index 80d48ed4f..e4a075d80 100644 --- a/js/qsm-admin.js +++ b/js/qsm-admin.js @@ -3635,7 +3635,7 @@ var import_button; let result_page = jQuery(this).closest("header").next("main"); let conditions = []; let redirect_value = result_page.find('.results-page-redirect').val(); - var page = wp.editor.getContent( result_page.find('.results-page-template').attr('id') ); + let page = wp.editor.getContent( result_page.find('.results-page-template').attr('id') ); result_page.find('.results-page-condition').each(function () { conditions.push({ 'category': $(this).find('.results-page-condition-category').val(), diff --git a/php/admin/options-page-email-tab.php b/php/admin/options-page-email-tab.php index 5d2e50f7d..476564933 100644 --- a/php/admin/options-page-email-tab.php +++ b/php/admin/options-page-email-tab.php @@ -196,7 +196,10 @@ function qsm_options_emails_tab_template() { - +