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

CIVICRM-984: Make "Add CiviCRM Tag to Contact" action list tags #549

Merged
merged 3 commits into from
Feb 11, 2020

Conversation

agileware-fj
Copy link
Contributor

Overview

This corrects the Admin UI of the "Add CiviCRM Tag to Contact" Rules action.

Before

"Add CiviCRM Tag to Contact" lists Groups to be added, but operates on Tag ID same as the selected group.

After

"Add CiviCRM Tag to Contact" lists Tags. No change to operation of the action.

@civicrm-builder
Copy link

Can one of the admins verify this patch?

@civibot
Copy link

civibot bot commented Nov 9, 2018

(Standard links)

@civibot civibot bot added the 7.x-master label Nov 9, 2018
@seamuslee001
Copy link
Contributor

Jenkins add to whitelist

return array();
}
$result = civicrm_api3('tag', 'get', array(
'used_for' => 'civicrm_contact',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@agileware-fj Francis the indenting looks off here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seamuslee001 I can't actually see a definitive answer on how this should be handled for function arguments in either the Drupal or CiviCRM coding standards.
Anyway, I've changed this to indent by 2 spaces for the arrays' contents only.

* Options list callback for listing of CiviCRM Tags
*/
function civicrm_rules_tags_list() {
if(!civicrm_initialize()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@agileware-fj need a space after the if

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

)
));
$values = array();
foreach($result['values'] as $tag) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@agileware-fj need a space after the foreach

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@mlutfy
Copy link
Member

mlutfy commented Feb 15, 2019

jenkins, test this please

@seamuslee001
Copy link
Contributor

@jackrabbithanna you know stuff about CiviRules does this make sense to you?

@agileware-justin
Copy link

Fixes a bug? Yes
Doesn't change existing functionality? Yes
Easy to test? Yes
Been open for more than 12 months? Yes

Should be OK to merge then.

@mattwire
Copy link
Contributor

mattwire commented Feb 8, 2020

@agileware-justin Does that mean you've tested it and it's working? ;-) - if yes, I'll merge

@agileware-justin
Copy link

@mattwire worked in 2018 and still works in 2020.

chrome_Y3pYVp02Ne

@mattwire
Copy link
Contributor

Merging based on @agileware-justin comments/review

@mattwire mattwire merged commit f723bb1 into civicrm:7.x-master Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants