From 42d19d16528996d6256ed1f728a2844f82a7eed5 Mon Sep 17 00:00:00 2001 From: Mohammad Zubair Ali Date: Thu, 4 Jan 2024 17:43:10 +0530 Subject: [PATCH] merge with dev 2 --- js/qsm-admin.js | 2 +- php/admin/admin-results-page.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/js/qsm-admin.js b/js/qsm-admin.js index c0969ff2b..a9a239a3a 100644 --- a/js/qsm-admin.js +++ b/js/qsm-admin.js @@ -1187,7 +1187,7 @@ if(current_id == 'qsm_variable_text'){ jQuery(".current_variable")[0].click();} value: 'cancel', nonce: wpApiSettings.nonce }, - success: function (status) { + success: function (response) { if (response.success) { $('.multiple-category-notice').hide(); } diff --git a/php/admin/admin-results-page.php b/php/admin/admin-results-page.php index 4d9fdf8a4..fde351b67 100644 --- a/php/admin/admin-results-page.php +++ b/php/admin/admin-results-page.php @@ -296,7 +296,6 @@ function qsm_results_overview_tab_content() { $user_id = get_current_user_id(); if ( isset( $_POST["results-screen_option_nonce"] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST["results-screen_option_nonce"] ) ), 'results_screen_option' ) ) { $results_screen_option['page_url'] = isset( $_POST['page_url'] ) ? sanitize_text_field( wp_unslash( $_POST['page_url'] ) ) : "0"; - $results_screen_option['view_result_page'] = isset( $_POST['view_result_page'] ) ? sanitize_text_field( wp_unslash( $_POST['view_result_page'] ) ) : "0"; $results_screen_option['page_name'] = isset( $_POST['page_name'] ) ? sanitize_text_field( wp_unslash( $_POST['page_name'] ) ) : "0"; $results_screen_option['view_result_page'] = isset( $_POST['view_result_page'] ) ? sanitize_text_field( wp_unslash( $_POST['view_result_page'] ) ) : "0"; $results_screen_option['business'] = isset( $_POST['business'] ) ? sanitize_text_field( wp_unslash( $_POST['business'] ) ) : "0";