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#561 Convert birth_date & deceased_date to datepicker #15635

Merged
merged 1 commit into from
Oct 28, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Convert birth_date & deceased_date to datepicker

Before

birth_date & deceased_date don't use datepicker

After

Now they do

Technical Details

Part of ongoing effort to eliminate jcalendar

Comments

@seamuslee001 well these 2 don't seem so hard

@civibot
Copy link

civibot bot commented Oct 28, 2019

(Standard links)

@civibot civibot bot added the master label Oct 28, 2019
@eileenmcnaughton eileenmcnaughton force-pushed the contact_date branch 4 times, most recently from 06d8d52 to c208e90 Compare October 28, 2019 05:15
@seamuslee001
Copy link
Contributor

@eileenmcnaughton i tested this, upgraded worked well date fields look good, on the relative date search tho it produced an error

Oct 29 07:24:08  [error] $Fatal Error Details = Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    [code] => -19
    [message] => DB Error: no such field
    [mode] => 16
    [debug_info] => SELECT DISTINCT LEFT(contact_a.sort_name, 1) as sort_name
       FROM civicrm_contact contact_a
      WHERE  ( civicrm_contact.birth_date BETWEEN '20161030000000' AND '20191029235959' )  AND (contact_a.is_deleted = 0)

      GROUP BY sort_name
      ORDER BY sort_name asc [nativecode=1054 ** Unknown column 'civicrm_contact.birth_date' in 'where clause']
    [type] => DB_Error
    [user_info] => SELECT DISTINCT LEFT(contact_a.sort_name, 1) as sort_name
       FROM civicrm_contact contact_a
      WHERE  ( civicrm_contact.birth_date BETWEEN '20161030000000' AND '20191029235959' )  AND (contact_a.is_deleted = 0)

      GROUP BY sort_name
      ORDER BY sort_name asc [nativecode=1054 ** Unknown column 'civicrm_contact.birth_date' in 'where clause']
    [to_string] => [db_error: message="DB Error: no such field" code=-19 mode=callback callback=CRM_Core_Error::handle prefix="" info="SELECT DISTINCT LEFT(contact_a.sort_name, 1) as sort_name
       FROM civicrm_contact contact_a
      WHERE  ( civicrm_contact.birth_date BETWEEN '20161030000000' AND '20191029235959' )  AND (contact_a.is_deleted = 0)

      GROUP BY sort_name
      ORDER BY sort_name asc [nativecode=1054 ** Unknown column 'civicrm_contact.birth_date' in 'where clause']"]

I think its because civicrm_contact should actually be contact_a i think

@eileenmcnaughton
Copy link
Contributor Author

ah makes sense - I guess we can wrangle that

@eileenmcnaughton
Copy link
Contributor Author

@seamuslee001 OK - fixed

@seamuslee001
Copy link
Contributor

Re-tested and confirmed that the fatal is gone and results are correct Merge on Pass

@seamuslee001 seamuslee001 merged commit 5756d96 into civicrm:master Oct 28, 2019
@seamuslee001 seamuslee001 deleted the contact_date branch October 28, 2019 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants