From 89fe49f71224a5ba9cc158d7162237a99d2abd4a Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Fri, 4 Jan 2019 17:20:23 +0000 Subject: [PATCH] Donot show Actions until user refreshes the new report --- CRM/Report/Form.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index 1dfb9becd23..141beefbc95 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -1571,13 +1571,15 @@ public function addOrderBys() { public function buildInstanceAndButtons() { CRM_Report_Form_Instance::buildForm($this); $this->_actionButtonName = $this->getButtonName('submit'); - $this->addTaskMenu($this->getActions($this->_id)); + if ($this->_instanceForm) { + $this->addTaskMenu($this->getActions($this->_id)); + } $this->assign('instanceForm', $this->_instanceForm); // CRM-16274 Determine if user has 'edit all contacts' or equivalent $permission = CRM_Core_Permission::getPermission(); - if ($permission == CRM_Core_Permission::EDIT && + if ($this->_instanceForm && $permission == CRM_Core_Permission::EDIT && $this->_add2groupSupported ) { $this->addElement('select', 'groups', ts('Group'),