-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Get rid of jcalendar range in custom data #15694
Conversation
(Standard links)
|
@eileenmcnaughton I tested this and agree the formatting looks a bit odd and i'm sure we can improve on that. I also created a bunch of smart groups, If you use a relative search it will be fine as is thankfully, the stored form values are
However if you select the choose date range option then things become a bit odd ball so to speak The stored form values are
so the relative value is correct however we probably need to split out that custom_7 array within array into _lower and _higher. At least it looks like the dates are stored correctly |
@seamuslee001 so the above is before the change - or before AND after? |
@eileenmcnaughton before the change only, when i switched to your branch the first one worked fine the 2nd correctly had the choose date range set but no values were populated |
@seamuslee001 so we need a conversion routing for the second case. However it seems we also need to resolve 2 issues maybe now on it working post convert |
@eileenmcnaughton do we want to get rid of this function also? https://github.com/civicrm/civicrm-core/blob/master/CRM/Contact/BAO/Query.php#L4733 |
I think so! |
dce4317
to
65a15ed
Compare
@seamuslee001 more cruft removal added - I think it might fix my double fields above |
@eileenmcnaughton i just tried testing this and when specifying a low value i got a fatal error
Relevant parts of the backtrace
|
Note that was on the previous iteration |
@eileenmcnaughton re-tested on your latest code and still get the same fatal error |
@seamuslee001 this seems to be working for the date field now but it's ignoring the filter on marital status when in combo for me now - digging |
fc573ad
to
034b9d3
Compare
ok @seamuslee001 I think the last version is all good except the formatting |
35a357c
to
c97a4cc
Compare
@seamuslee001 we'd better test creating both a custom date relative field smart group & a integer (or other ) range one - I think the tests caught the probs but just followed a rabbit into a hole |
a8421da
to
e28fb01
Compare
@eileenmcnaughton i tested both together and they seemed to be stored correctly and loaded right post change that is, Which makes me think the test rig might be problematic |
db3ff4e
to
fdf5c92
Compare
fdf5c92
to
68ec0a2
Compare
@seamuslee001 that turned out to be a very rabbity hole! I think once the prequels to this are merged we can merge this and you convert script & be done |
@eileenmcnaughton needs a rebase now |
…xtract js into own template for sharing
68ec0a2
to
afbe25c
Compare
Yep - rebased! |
Re tested this and confirmed that it works well and also confirmed that number range searches still work as expected. Merge on Pass |
Wow - that's a lot of date wrangling code now gone from saved search & smart groups! |
Overview
This is the last jcalendar field in search so it has to go. My testing (& recollection) suggests a conversion routine is not required for saved searches using these.
Before
Jcalendar
After
Datepicker rules KO
Technical Details
@seamuslee001 first attempt - the layout is a bit wonky in this first cut.
Comments