-
-
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
[Date picker][REF] Convert jcalendar date fields to date picker on me… #15177
[Date picker][REF] Convert jcalendar date fields to date picker on me… #15177
Conversation
(Standard links)
|
394f315
to
0d75625
Compare
Looks like test fails might be related. |
0d75625
to
fddf3d6
Compare
Also with this we need to ensure _relative gets to civicrm-core/CRM/Contact/BAO/Query.php Line 1815 in 714ab07
& is processed there - NOT converted into high/low values which will not be loaded correctly from the db when loading saved groups Old way
New way
|
fddf3d6
to
19fb921
Compare
ok @eileenmcnaughton should hopefully have fixed that |
19fb921
to
987238f
Compare
@seamuslee001 the fail relates to the xml change - since this will be stale once we merge the pledge one it might be worth resolving the xml change for this as a separate PR & then rebase this one pledge & that are merged |
b414fb3
to
8a85f7d
Compare
CRM/Member/BAO/Query.php
Outdated
@@ -165,29 +165,36 @@ public static function whereClauseSingle(&$values, &$query) { | |||
switch ($name) { | |||
case 'member_join_date_low': | |||
case 'member_join_date_high': | |||
case 'membership_join_date_low': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@seamuslee001 I'm not keen on this - it leaves the deprecated code 'looking useful' - I'd rather separate out the 2 & have deprecation notices in the obsolete code.
We could handle the 'good fields' like this #15191
8a85f7d
to
1b36b65
Compare
@eileenmcnaughton have updated now can you re-check pls |
OK I think the way the tpl changes close up the whitespace makes sense - will add a sig-markup label for themers |
@eileenmcnaughton and the upgrade definitely happened? |
@seamuslee001 yes - but look here
|
1b36b65
to
9298f6f
Compare
@eileenmcnaughton i have just pushed an update to fix the upgrade |
@seamuslee001 OK - I was expecting us to make the function handle them but that is fine |
@eileenmcnaughton we have already used this function before in previous upgrades so i'm more nervous about touching it rather than touching the upgrade code |
OK - let's merge this but I have a worry that the legacy group I created didn't save the relative dates - similar to the pledge one - and that feels suspicious to me - like there could have been a previous regression affecting creating new smart groups with relative dates. This 'fixes' but could it be the case that a smart group created in 5.15 with criteria 'End date' = 'this.month' is NOT working as a relative group - there might be some issue there to track |
@eileenmcnaughton i have also just pushed up a commit to fix the batch form and some report filters |
Ah - looks like I messed up the regex here 7f17570#diff-54576153cb6a72d6ea7e22a5e8ca63f2R442 |
35fdaa5
to
d49e404
Compare
…mber search screen Ensure that relative fields are handled as per newer handling Update to eileen's metadata date_query functions and fix template Fix upgrade by including each of the 3 separate field names
…d add in unit test of problem with mulitple relative dates in the one smart group Fix test that was just added by moving assigning of fieldPossibilities lower
25237b3
to
1915f8d
Compare
…mber search screen
Overview
Switches the member date fields from using jcalendar to datepicker and this tidies up the search template a bit as well
Before
Jcalender fields used
After
Datepicker used
ping @eileenmcnaughton