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