(dev/core#1226) Fix regression where new groups created on 5.16 with relative dates save 'fixed dates' #15201
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
FIxes a regression whereby creating new groups on 5.16 with a relative date on one of the below fields say it saved as a fixed date (e.g 'this.month' ended up as '_low' => '2019-09-01', _high => '2019-09-30')
It is not possible to repair these but we can prevent more being created.
Before
Some groups created on civi 5.16 will not retain relative date information
After
Above is fixed
Technical Details
In the medium term all of these will be standardised as datepicker fields
Comments
This is a slightly modified backport of #15194