CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • filtering date ranges with customGroupExtends?
Pages: [1]

Author Topic: filtering date ranges with customGroupExtends?  (Read 798 times)

david.a.king

  • I’m new here
  • *
  • Posts: 25
  • Karma: 0
  • CiviCRM version: 3.4.5
  • CMS version: drupal 6.22
  • MySQL version: 5.2
  • PHP version: 5.3
filtering date ranges with customGroupExtends?
March 27, 2012, 03:43:47 pm
Hi,

I'm using  protected $_customGroupExtends = array( 'Organization'); to add custom fields to a report - filtering works for select and text based fields but any date field filters are ignored.. any idea why?

custom field is: Date - Select Date and format is dd/mm/yyyy, time - none.

civicrm v3.4.5..

thanks!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: filtering date ranges with customGroupExtends?
March 27, 2012, 06:32:29 pm

1. Can u try and do the same experiment on 4.1 and see if it has been fixed there?

2. If i had to guess, the code that handle custom fields in reports has skipped handling date fields

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

david.a.king

  • I’m new here
  • *
  • Posts: 25
  • Karma: 0
  • CiviCRM version: 3.4.5
  • CMS version: drupal 6.22
  • MySQL version: 5.2
  • PHP version: 5.3
Re: filtering date ranges with customGroupExtends?
March 28, 2012, 02:47:44 am
Checking on the 4.1 d6 demo site (it has a marriage custom date field) that doesn't work, so doesn't look like it's been fixed. surprised i couldn't find any previous mentions of the issue though? i assume i'm not doing something stupid?

Looking at the query generated (on my version) the date part is indeed just skipped. I can't work out where it's dealt with myself. probably going to be easier for me to build my own query/report for this particular case.

thanks though,
David

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • filtering date ranges with customGroupExtends?

This forum was archived on 2017-11-26.