CRM_Utils_System::redirect($url);
return TRUE;
}
- else {
- $this->addButtons(array(
- array(
- 'type' => 'next',
- 'name' => ts('Delete'),
- 'isDefault' => TRUE,
- ),
- array(
- 'type' => 'cancel',
- 'name' => ts('Cancel'),
- ),
- )
- );
- }
}
else {
$this->_isTagSet = CRM_Utils_Request::retrieve('tagset', 'Positive', $this);
}
if (!$this->_isTagSet) {
- $this->add('select', 'parent_id', ts('Parent Tag'), $allTag);
+ $this->add('select', 'parent_id', ts('Parent Tag'), $allTag, FALSE, array('class' => 'crm-select2'));
}
$this->assign('isTagSet', $this->_isTagSet);
$isReserved = $this->add('checkbox', 'is_reserved', ts('Reserved?'));
- $usedFor = $this->add('select', 'used_for', ts('Used For'),
- CRM_Core_OptionGroup::values('tag_used_for')
- );
- $usedFor->setMultiple(TRUE);
+ $usedFor = $this->addSelect('used_for', array('multiple' => TRUE, 'option_url' => NULL));
if ($this->_id &&
CRM_Core_DAO::getFieldValue('CRM_Core_DAO_Tag', $this->_id, 'parent_id')
}
$this->assign('adminReservedTags', $adminReservedTags);
- parent::buildQuickForm();
}
+ parent::buildQuickForm();
}
/**