From d9ef1fd1e337a004616853c86041ae0e5e7e1948 Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sat, 23 Oct 2021 13:54:31 +0100 Subject: [PATCH] jqXHR.error is deprecated in jQuery 1.8 and removed in jQuery 3. This update replaces usage of jqXHR.error with the correct jqXHR.fail --- templates/CRM/Financial/Form/Search.tpl | 2 +- templates/CRM/Financial/Page/BatchTransaction.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Financial/Form/Search.tpl b/templates/CRM/Financial/Form/Search.tpl index 7933d3597842..5eb3c91a6299 100644 --- a/templates/CRM/Financial/Form/Search.tpl +++ b/templates/CRM/Financial/Form/Search.tpl @@ -233,7 +233,7 @@ CRM.$(function($) { CRM.alert({/literal}'{ts escape="js"}An error occurred while processing your request.{/ts}', $("#batch_update option[value=" + op + "]").text() + ' {ts escape="js"}Error{/ts}'{literal}, 'error'); } }, - 'json').error(serverError); + 'json').fail(serverError); } function validateOp(records, op) { diff --git a/templates/CRM/Financial/Page/BatchTransaction.tpl b/templates/CRM/Financial/Page/BatchTransaction.tpl index 343659e76d94..9c7f8254fc5f 100644 --- a/templates/CRM/Financial/Page/BatchTransaction.tpl +++ b/templates/CRM/Financial/Page/BatchTransaction.tpl @@ -141,7 +141,7 @@ function saveRecord(recordID, op, recordBAO, entityID) { CRM.alert(html.status); } }, - 'json').error(noServerResponse); + 'json').fail(noServerResponse); } function batchSummary(entityID) {