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 redundant custom field types #18378

Merged
merged 1 commit into from
Sep 7, 2020

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Sep 5, 2020

Overview

Custom field html_type 'Select Country' and 'Select State/Province' served no purpose and have been removed. They are the same as 'Select', just with a different data_type.

Before

The html_types 'Select Country' and 'Select State/Province' exist.

After

Now they don't.

Technical Details

This adds an APIv3 shim to display the old types, which should mitigate the impact on APIv3 users.
No shims added for APIv4 since it's relatively new.

@civibot
Copy link

civibot bot commented Sep 5, 2020

(Standard links)

@civibot civibot bot added the master label Sep 5, 2020
@eileenmcnaughton
Copy link
Contributor

Test Result (1 failure / -13)
CRM_Core_BAO_CustomFieldTest.testGetFieldsForImport

The html_type 'Select Country' and 'Select State/Province' serve no purpose. They are the same as Select, just with a different data_type.

This adds an APIv3 shim to display the old types.
@seamuslee001
Copy link
Contributor

Jenkins re test this please

@seamuslee001
Copy link
Contributor

@colemanw this I think will work fine but we will need a corresponding PR to update here https://github.com/civicrm/civicrm-drupal/blob/7.x-master/modules/views/civicrm.views.inc#L567 and maybe https://github.com/civicrm/civicrm-drupal/blob/7.x-master/modules/views/civicrm.views.inc#L465 but probably doesn't matter that one

@colemanw
Copy link
Member Author

colemanw commented Sep 7, 2020

Ok @seamuslee001 I have opened civicrm/civicrm-drupal#622

@seamuslee001
Copy link
Contributor

Changes look good and I have tested the views changes and they work as well merging

@seamuslee001 seamuslee001 merged commit 3038efc into civicrm:master Sep 7, 2020
@seamuslee001 seamuslee001 deleted the noMoreStupidHTMLTypes branch September 7, 2020 22:24
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.

3 participants