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

dev/core/#152 - Remove AdvMulti-Select custom field type #12238

Merged
merged 1 commit into from
Jun 5, 2018

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented May 30, 2018

Overview

screenshot from 2018-05-29 15 19 57
This widget type has been deprecated and this warning has been part of the UI since 2014. This PR finally removes it.

Before

The obsolete "AdvMulti-Select" widget was available as a custom field type, but the above warning would pop up when selecting it.

After

No longer available. Any custom fields using that type are changed to regular mutli-select (which uses Select2, a much nicer widget).

@JoeMurray
Copy link
Contributor

Thanks for doing this code maintenance, @colemanw . I have reviewed the code and it looks good but I have not tested.

@seamuslee001
Copy link
Contributor

@colemanw is there any change to how the custom data is stored in the database for these fields that are getting converted?

@colemanw
Copy link
Member Author

colemanw commented Jun 2, 2018

Nope.

@seamuslee001
Copy link
Contributor

I have just run the upgrade on an AUG test box and have tested loading smart groups that were used with the old format and confirmed that no changes happen, I believe this is good for merge

@jitendrapurohit
Copy link
Contributor

A quick grep after applying the PR -

$ grep -rn AdvMulti-Select CRM        
CRM/Upgrade/Incremental/sql/5.3.alpha1.mysql.tpl:18:UPDATE `civicrm_custom_field` set `html_type` = "Multi-Select" WHERE `html_type` = "AdvMulti-Select";
CRM/Contact/Import/Parser.php:910:          case 'AdvMulti-Select':
CRM/Contact/Import/Parser.php:1220:              case 'AdvMulti-Select':
CRM/Contribute/Form/Contribution/Confirm.php:650:              'AdvMulti-Select',

Should we remove the case added in Parser.php and Confirm.php too?

@eileenmcnaughton
Copy link
Contributor

I'm going to merge this based on the review that has taken place (above) so that it hits the rc (since that is what the upgrade script applies to).

@colemanw do you want to look at a follow up PR per @jitendrapurohit comments?

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.

6 participants