[REF] Extract the code to determine the DAO name into a functions
[civicrm-core.git] / CRM / Case / Form / CaseView.php
index 4c21b837e1c187beade765b2482c5132e68744e2..f2300dadb23e11ae16d1cd37e48ea083b48aa6de 100644 (file)
@@ -272,6 +272,9 @@ class CRM_Case_Form_CaseView extends CRM_Core_Form {
         ['class' => 'crm-select2 crm-action-menu fa-list-ol']
       );
     }
+    // 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('xbutton', $this->getButtonName('next'), ' ', [
       'class' => 'hiddenElement',
       'type' => 'submit',
@@ -520,6 +523,9 @@ class CRM_Case_Form_CaseView extends CRM_Core_Form {
         FALSE,
         ['class' => 'crm-select2 huge']
       );
+      // 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('xbutton',
         $this->getButtonName('next', 'merge_case'),
         ts('Merge'),