else {
$this->_gName = $this->get('gName');
}
- $this->_gLabel = ucwords(str_replace('_', ' ', $this->_gName));
+ $this->_gLabel = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionGroup', $this->_gid, 'title');
$url = "civicrm/admin/options/{$this->_gName}";
- $params = "group={$this->_gName}&reset=1";
+ $params = "reset=1";
if (($this->_action & CRM_Core_Action::DELETE) &&
in_array($this->_gName, array('email_greeting', 'postal_greeting', 'addressee'))
.on('click', 'a.crm-edit-optionvalue-link', function() {
var url = $(this).data('option-group-url');
- CRM.loadForm(CRM.url(url, {reset: 1}))
+ CRM.loadForm(CRM.url(url, {reset: 1}), {openInline: 'a:not("[href=#], .no-popup")'})
.on('dialogclose', function() {
var $elects = $('select[data-option-group-url="' + url + '"]');
CRM.api3($elects.data('api-entity'), 'getoptions', {sequential: 1, field: $elects.data('api-field')})