Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Activity tag to use select2 #14247

Merged
merged 2 commits into from
Jun 5, 2019
Merged

Conversation

pradpnayak
Copy link
Contributor

@civibot civibot bot added the master label May 14, 2019
@civibot
Copy link

civibot bot commented May 14, 2019

(Standard links)

@pradpnayak
Copy link
Contributor Author

ping @monishdeb

@colemanw
Copy link
Member

Most places in the UI now tags are displayed in color. Example from CRM_Activity_Form_Activity:

$tags = CRM_Core_BAO_Tag::getColorTags('civicrm_activity');

if (!empty($tags)) {
  $this->add('select2', 'tag', ts('Tags'), $tags, FALSE, [
    'class' => 'huge',
    'placeholder' => ts('- select -'),
    'multiple' => TRUE,
  ]);
}

But warning this changes the format from an array to a comma-separated list, so the form processing has to deal with that.

@pradpnayak
Copy link
Contributor Author

@colemanw have pushed the change. Can you please review now?

@monishdeb
Copy link
Member

Tested working fine. Merging now.

@monishdeb monishdeb merged commit 1c1c879 into civicrm:master Jun 5, 2019
@colemanw
Copy link
Member

colemanw commented Jun 5, 2019

Looks good 👍

@pradpnayak pradpnayak deleted the ActvityTags branch March 23, 2020 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants