From d6b29c1821e9d77ae749fbe19cccd2e30c5af215 Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 22 Jun 2016 13:42:15 +1200 Subject: [PATCH] CRM-17154 remove duplicated action buttons --- CRM/Report/Form.php | 7 ------- templates/CRM/Report/Form/Fields.tpl | 8 -------- 2 files changed, 15 deletions(-) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index 384a96d682..06e2369ca7 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -1468,13 +1468,6 @@ class CRM_Report_Form extends CRM_Core_Form { $this->_actionButtonName = $this->getButtonName('submit'); $this->addTaskMenu($this->getActions($this->_id)); - if ($this->_id) { - $this->addElement('submit', $this->_createNewButtonName, - ts('Save a Copy') . '...'); - } - $this->addElement('submit', $this->_instanceButtonName, - ts('Update Report')); - $this->assign('instanceForm', $this->_instanceForm); // CRM-16274 Determine if user has 'edit all contacts' or equivalent diff --git a/templates/CRM/Report/Form/Fields.tpl b/templates/CRM/Report/Form/Fields.tpl index 7d8be39135..45b02f19de 100644 --- a/templates/CRM/Report/Form/Fields.tpl +++ b/templates/CRM/Report/Form/Fields.tpl @@ -56,16 +56,8 @@ {/if} {* end mainTabContainer *} - {assign var=save value="_qf_"|cat:$form.formName|cat:"_submit_save"} - {assign var=next value="_qf_"|cat:$form.formName|cat:"_submit_next"}
{$form.buttons.html} - {if $instanceForm} - {$form.$save.html} - {/if} - {if $mode neq 'template' && $form.$next} - {$form.$next.html} - {/if}
{* criteria section ends *} {/if} -- 2.25.1