Merge in 5.29
authorSeamus Lee <seamuslee001@gmail.com>
Tue, 18 Aug 2020 03:26:48 +0000 (13:26 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Tue, 18 Aug 2020 03:26:48 +0000 (13:26 +1000)
1  2 
CRM/Case/Form/CaseView.php
CRM/Event/Form/ManageEvent/Fee.php

index f2300dadb23e11ae16d1cd37e48ea083b48aa6de,646d48cfd054ea71f88872196b320a05d7ca3691..7c9724a53c83671ca4ee97eec12fc5168257bb3c
@@@ -272,13 -272,7 +272,10 @@@ class CRM_Case_Form_CaseView extends CR
          ['class' => 'crm-select2 crm-action-menu fa-list-ol']
        );
      }
-     $this->addElement('xbutton', $this->getButtonName('next'), ' ', [
-       'class' => 'hiddenElement',
-       'type' => 'submit',
-     ]);
 +    // This button is hidden but gets clicked by javascript at
 +    // https://github.com/civicrm/civicrm-core/blob/bd28ecf8121a85bc069cad3ab912a0c3dff8fdc5/templates/CRM/Case/Form/CaseView.js#L194
 +    // by the onChange handler for the above timeline_id select.
+     $this->addElement('submit', $this->getButtonName('next'), ' ', ['class' => 'hiddenElement']);
  
      $this->buildMergeCaseForm();
  
          FALSE,
          ['class' => 'crm-select2 huge']
        );
-       $this->addElement('xbutton',
 +      // This button is hidden but gets clicked by javascript at
 +      // https://github.com/civicrm/civicrm-core/blob/bd28ecf8121a85bc069cad3ab912a0c3dff8fdc5/templates/CRM/Case/Form/CaseView.js#L55
 +      // when the mergeCasesDialog is saved.
+       $this->addElement('submit',
          $this->getButtonName('next', 'merge_case'),
          ts('Merge'),
          [
Simple merge