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

Remove contact tags when none selected on edit screen #12958

Merged
merged 1 commit into from
Oct 20, 2018

Conversation

pradpnayak
Copy link
Contributor

@pradpnayak pradpnayak commented Oct 18, 2018

Overview

Contact are not untagged when all the values from tag select drop down is unselected.

Steps to reproduce:

Log in to CRM
Go to Individual's profile
Click the button "Edit"
Open block "Tags and Groups"
Delete data from field "Tag(s)"
Click the button "Save"
Result: The information in the tag field is not updated (see below gif file)

Expected result: The field "Tag(s)" has been updated.

Before

before

After

after

Technical Details

When Tags are unselected on Contact edit form $params['tags'] is empty and hence it doesn't call create entity tag function where it removes or adds tags depending upon $params['tags'] array passed. The create entity tag function first gets all the tags of the contact and then diff with $params['tags'] and untags the contact from result of diff.

@civibot
Copy link

civibot bot commented Oct 18, 2018

(Standard links)

@civibot civibot bot added the master label Oct 18, 2018
@eileenmcnaughton
Copy link
Contributor

@pradpnayak did you forget to fill in the pr detail?

@pradpnayak
Copy link
Contributor Author

@eileenmcnaughton Sorry! I just updated it.

@colemanw colemanw changed the base branch from master to 5.7 October 20, 2018 15:12
@civibot civibot bot added 5.7 and removed master labels Oct 20, 2018
@colemanw
Copy link
Member

Unrelated test fails.

@colemanw
Copy link
Member

I'm merging this to 5.7 as it appears to be a recent regression.

@colemanw colemanw merged commit da1ad7a into civicrm:5.7 Oct 20, 2018
@eileenmcnaughton
Copy link
Contributor

@colemanw we are probably dropping a 5.6.x - see #12965 - should we pull this in?

@colemanw
Copy link
Member

I'm good with that @eileenmcnaughton

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