Merge pull request #18114 from eileenmcnaughton/phone
[civicrm-core.git] / CRM / Core / BAO / Mapping.php
index 58b573c3f807a27af89ee4362b58d2577277c7d1..e2e0e7057a29de51be7091621772fe334e24e630 100644 (file)
@@ -318,11 +318,8 @@ class CRM_Core_BAO_Mapping extends CRM_Core_DAO_Mapping {
     $hasRelationTypes = [];
 
     $columnCount = $columnNo;
-    $form->addElement('xbutton', 'addBlock', ts('Also include contacts where'),
-      [
-        'type' => 'submit',
-        'class' => 'submit-link',
-      ]
+    $form->addElement('submit', 'addBlock', ts('Also include contacts where'),
+      ['class' => 'submit-link']
     );
 
     $contactTypes = CRM_Contact_BAO_ContactType::basicTypes();
@@ -556,10 +553,7 @@ class CRM_Core_BAO_Mapping extends CRM_Core_DAO_Mapping {
         $form->add('text', "value[$x][$i]", '');
       }
 
-      $form->addElement('xbutton', "addMore[$x]", ts('Another search field'), [
-        'type' => 'submit',
-        'class' => 'submit-link',
-      ]);
+      $form->addElement('submit', "addMore[$x]", ts('Another search field'), ['class' => 'submit-link']);
     }
     //end of block for