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 CiviContribute (Moderator: Donald Lobo) »
  • Date entry problem
Pages: [1]

Author Topic: Date entry problem  (Read 2189 times)

SteveM

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 3
    • OpenConcept Consulting, Inc.
Date entry problem
December 10, 2008, 05:15:11 pm
For some reason, the date drop-downs in CiviContribute are restricting us to the date range 2005-2009, and the javascript calendar is only offering 2003-2013. Where are these ranges set? I don't see anything in the UI that controls this.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Date entry problem
December 11, 2008, 04:50:01 am
Can you specify the page where you are having this issue ?

Kurund
Found this reply helpful? Support CiviCRM

SteveM

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 3
    • OpenConcept Consulting, Inc.
Re: Date entry problem
December 11, 2008, 05:45:11 am
It arises when attempting to "Record offline contribution". Dates before 2005 are not being accepted, even if chosen using the JS popup.

Oh, and this client is using CiviCRM 1.9.13019.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Date entry problem
December 11, 2008, 06:03:26 am
You will have to modify, CRM/Contribution/Form/Contribution.php and change: (line around 366)

Quote
$element =& $this->add('date', 'receive_date', ts('Received'), CRM_Core_SelectValues::date('manual', 3, 1), false );

to

Quote
$element =& $this->add('date', 'receive_date', ts('Received'), CRM_Core_SelectValues::date('activityDate'), false );

HTh

Kurund
Found this reply helpful? Support CiviCRM

SteveM

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 3
    • OpenConcept Consulting, Inc.
Re: Date entry problem
December 18, 2008, 02:33:34 pm
Whoops. That seems to make things worse. The JS calendar still goes back only to 2003, and the dropdown selector now only contains the current year.

SteveM

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 3
    • OpenConcept Consulting, Inc.
Re: Date entry problem
December 18, 2008, 02:37:41 pm
This allows the current year +- 20 years, which works for our purposes:

   $element =& $this->add('date', 'receive_date', ts('Received'), CRM_Core_SelectValues::date('relative'), false );

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Date entry problem
December 18, 2008, 03:23:40 pm
Not sure what version of Civi you're running (good to update your forum Profile) - but in recent versions you can modify the date ranges for various classes of dates from the Administer CiviCRM >> Global Settings >> Date Settings >> Advanced Date Input Settings screen.

http://drupal.demo.civicrm.org/civicrm/admin/setting/preferences/date?reset=1 on the demo.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Date entry problem

This forum was archived on 2017-11-26.