Mantis

[Resolved] Date field too short

Posted by abdaizs 
[Resolved] Date field too short
June 15, 2009 08:02AM
Hi All,

Not a Plugin question, but I have a problem with date typed fields.

I can choose only 2009, 2010, 2011, 2012 and 2013 from the list. But I want to choose etw. 1960 or 2060. Can I do it with some changes?

Thanx for the answer.


Zsolt
Re: Date field too short
June 15, 2009 09:09AM
In the core/custom_fields_api.php file, you need to update the print_custom_field_input function (at the end):

Language: PHP
CUSTOM_FIELD_TYPE_DATE: print_date_selection_set("custom_field_" . $t_id, config_get(&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;short_date_format&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;), $t_custom_field_value,,, 1960, 2060) ; ;

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: Date field too short
June 15, 2009 02:09PM
Thanks for the answer, it helped!

Zsolt
Sorry, only registered users may post in this forum.

Click here to login



Online Users

Guests: 7
Record Number of Users: 1 on April 02, 2023
Record Number of Guests: 115 on November 09, 2023
Top Users
Hébergeur : Morinie.Fr