// views are implemented as frozen form
if ($this->_action & CRM_Core_Action::VIEW) {
$this->freeze();
- $this->addElement('button', 'done', ts('Done'), ['onclick' => "location.href='civicrm/admin/custom/group?reset=1&action=browse'"]);
+ $this->addElement('xbutton', 'done', ts('Done'), [
+ 'type' => 'button',
+ 'onclick' => "location.href='civicrm/admin/custom/group?reset=1&action=browse'",
+ ]);
}
// don't show option for contribution amounts section if membership price set