From 23989f49ce3e251e53778283aea515b485129221 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Fri, 24 Jul 2015 01:43:07 +0530 Subject: [PATCH] --CRM-16187, fixed code style --- templates/CRM/Admin/Page/APIExplorer.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/CRM/Admin/Page/APIExplorer.js b/templates/CRM/Admin/Page/APIExplorer.js index 7cba1f5253..38a15486d8 100644 --- a/templates/CRM/Admin/Page/APIExplorer.js +++ b/templates/CRM/Admin/Page/APIExplorer.js @@ -690,9 +690,7 @@ * and Action is Create, delete, update etc then display warning */ function checkBookKeepingEntity(entity, action) { - if ($.inArray(entity, ['EntityFinancialTrxn', 'FinancialTrxn']) > -1 - && $.inArray(action, ['delete', 'setvalue', 'replace', 'create']) > -1 - ) { + if ($.inArray(entity, ['EntityFinancialTrxn', 'FinancialTrxn']) > -1 && $.inArray(action, ['delete', 'setvalue', 'replace', 'create']) > -1) { var msg = ts('Given the importance of auditability, extension developers are strongly discouraged from writing code to add, update or delete entries in the civicrm_financial_item, civicrm_entity_financial_trxn, and civicrm_financial_trxn tables. Before publishing an extension on civicrm.org that does any of this, please ask for a special bookkeeping code review for the extension.'); CRM.alert(msg, 'warning'); } -- 2.25.1