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 #12981

Closed
wants to merge 1 commit into from

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Oct 22, 2018

Overview

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

merged to 5.7 in #12958

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.

@eileenmcnaughton
Copy link
Contributor Author

test this please

@eileenmcnaughton
Copy link
Contributor Author

@colemanw I put this against 5.6 as per your comments it is a recent regression

@eileenmcnaughton
Copy link
Contributor Author

@totten checked & regression seems older - 4.7.23 / #10429 - closing this as 5.7 is fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants