Skip to content

Commit

Permalink
Donot show Actions until user refreshes the new report
Browse files Browse the repository at this point in the history
  • Loading branch information
pradpnayak committed Jan 4, 2019
1 parent 3f501e5 commit 89fe49f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CRM/Report/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 89fe49f

Please sign in to comment.