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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Dates read-only in Core/Form.php
Pages: [1]

Author Topic: Dates read-only in Core/Form.php  (Read 729 times)

ccowens

  • Guest
Dates read-only in Core/Form.php
April 22, 2010, 03:54:22 pm
Can anyone explain the rationale behind setting all date fields  to readonly='true'

See line 983 of Core/Form.php

This seems to have the effect of forcing users to use the datepicker instead of letting them type in a date.

Would it break something if I commented it out?

ccowens

  • Guest
Re: Dates read-only in Core/Form.php
April 26, 2010, 06:57:42 pm
Sorry for the gratuitous bump, but I really don't want to break something here....

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: Dates read-only in Core/Form.php
April 26, 2010, 10:21:46 pm

i would go ahead and remove that and see how things behave

the main issue we know about, is that we dont have a "rule" on those date objects, and hence if the user types an invalid date we will not catch it

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Dates read-only in Core/Form.php

This forum was archived on 2017-11-26.