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#2188 - Upgrader - Cleanup any invalid combinations of is_search_range #19123

Merged
merged 2 commits into from
Dec 5, 2020

Conversation

totten
Copy link
Member

@totten totten commented Dec 5, 2020

Overview

Certain custom-field configurations are not sensible - notably, #11 below:

+----+-----------+-----------+---------------+-----------------+--------------+
| id | data_type | html_type | is_searchable | is_search_range | comment      |
+----+-----------+-----------+---------------+-----------------+--------------+
| 00 | Int       | Radio     |             0 |               0 | Sensible     |
| 10 | Int       | Radio     |             1 |               0 | Sensible     |
| 11 | Int       | Radio     |             1 |               1 | Not sensible |
+----+-----------+-----------+---------------+-----------------+--------------+

In 5.30, the search screen was forgiving about these - but in 5.31+, it became unforgiving.

The previous fix (#18970) prevents creation of new fields in configuration #11. However, existing fields would still be problematic.

Before

Upgraders retain problematic configurations, which become symptomatic in newer versions.

After

Upgraders get valid configurations.

…rch_range=1

These invalid configurations were previously asymptomatic in 5.30 but became symptomatic in 5.31.
@civibot
Copy link

civibot bot commented Dec 5, 2020

(Standard links)

@civibot civibot bot added the 5.33 label Dec 5, 2020
@eileenmcnaughton eileenmcnaughton merged commit 7b87149 into civicrm:5.33 Dec 5, 2020
@totten totten deleted the 5.33-search-range branch December 5, 2020 05:02
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.

2 participants