From 6fa89b0b284fa7998dbb784b7508d036e69a9a5e Mon Sep 17 00:00:00 2001 From: Deepak Srivastava Date: Mon, 12 Aug 2013 17:10:13 +0530 Subject: [PATCH] CRM-12910, fixes to also consider ajax calls and do re-binding when calling crmRevisionLink --- CRM/Report/BAO/Hook.php | 1 - templates/CRM/common/logButton.tpl | 22 ++++++++++++++++------ 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/CRM/Report/BAO/Hook.php b/CRM/Report/BAO/Hook.php index 12bbbf95f0..6c2cee9f6c 100644 --- a/CRM/Report/BAO/Hook.php +++ b/CRM/Report/BAO/Hook.php @@ -69,7 +69,6 @@ class CRM_Report_BAO_Hook { $this->_queryObjects = array(); CRM_Utils_Hook::queryObjects($this->_queryObjects, 'Report'); } - CRM_Core_Error::debug( '$this->_queryObjects', $this->_queryObjects ); return $this->_queryObjects; } diff --git a/templates/CRM/common/logButton.tpl b/templates/CRM/common/logButton.tpl index c9cef83fc8..c22a2f9e0b 100644 --- a/templates/CRM/common/logButton.tpl +++ b/templates/CRM/common/logButton.tpl @@ -36,16 +36,26 @@ Note: This file is used by CivHR *} -View Revisions +{if !$onlyScript} + View Revisions +{/if} {literal} {/literal} -- 2.25.1