Merge pull request #18317 from eileenmcnaughton/bug_test
[civicrm-core.git] / CRM / Profile / Form.php
index c6594fd4bd97ae2c3ffcb3851f39836f608d1f9f..8d8f46cd881fd97464027f1e7475434d0a3c5e5a 100644 (file)
@@ -904,13 +904,9 @@ class CRM_Profile_Form extends CRM_Core_Form {
 
     if ($this->_context == 'dialog') {
       $this->addElement(
-        'xbutton',
+        'submit',
         $this->_duplicateButtonName,
-        ts('Save Matching Contact'),
-        [
-          'type' => 'submit',
-          'class' => 'crm-button',
-        ]
+        ts('Save Matching Contact')
       );
     }
   }