dev/core#1822 - Fix missing newly created activity types from the dropdown on the new activity form #17625
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
https://lab.civicrm.org/dev/core/-/issues/1822
Adding a new activity type and then going to create a new activity doesn't show the new type in the dropdown on the form. Stopped working in 5.26.
Technical Details
The change to use the database default for the
filter
column changed it to null, but it needs 0. One other way to deal with this would be to make the need for 0 in the code more tolerant to also accept null to mean the same thing. Another would be to put back the code that sets a missing filter value to FALSE. But this PR seems more in line with the intended direction of the earlier change.Comments
One thing I'm not sure about is that updating any that got inadvertently set to null will also update ones that someone might have set to null on purpose. But that seems unlikely? Should remove the code comment in the sql upgrade file if it's decided to go with this PR.