$campaign = $form->addEntityRef('campaign_id', ts('Campaign'), [
'entity' => 'campaign',
'create' => TRUE,
+ 'select' => ['minimumInputLength' => 0],
]);
//lets freeze when user does not has access or campaign is disabled.
if (!$isCampaignEnabled || !$hasAccessCampaign) {
$this->addEntityRef('campaign_id', ts('Campaign'), [
'entity' => 'campaign',
'create' => TRUE,
+ 'select' => ['minimumInputLength' => 0],
]);
$customContactProfiles = CRM_Core_BAO_UFGroup::getProfiles(array('Individual'));
$this->addEntityRef('campaign_id', ts('Campaign'), [
'entity' => 'campaign',
'create' => TRUE,
+ 'select' => ['minimumInputLength' => 0],
]);
// script / instructions
$fieldsToReturn = ['title', 'campaign_type_id', 'status_id', 'start_date', 'end_date'];
$request['params']['return'] = array_unique(array_merge($fieldsToReturn, $request['extra']));
if (empty($request['params']['id'])) {
+ $request['params']['options']['sort'] = 'start_date DESC, title';
$request['params'] += [
'is_active' => 1,
];