Default value for custom field of date type

Get help from other users here.

Moderators: Developer, Contributor

dyawlak
Posts: 66
Joined: Dec 07, 2007 11:42 am

Default value for custom field of date type

Post by dyawlak » Jan 29, 2008 6:06 am

Is there any way to set the default value of a custom field of date type to todays date?


Thanks

cybernijntje
Posts: 1
Joined: Feb 06, 2008 4:46 am

Re: Default value for custom field of date type

Post by cybernijntje » Feb 26, 2008 10:07 am

Same question here. Does anyone have an answer?

dyawlak
Posts: 66
Joined: Dec 07, 2007 11:42 am

Re: Default value for custom field of date type

Post by dyawlak » Mar 06, 2008 4:02 am

Does any one have a solution for this?

Thanks

deboutv
Posts: 507
Joined: Jan 15, 2007 9:31 am
Location: La Ciotat, FRANCE
Contact:

Re: Default value for custom field of date type

Post by deboutv » Mar 06, 2008 6:22 am

Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

dyawlak
Posts: 66
Joined: Dec 07, 2007 11:42 am

Re: Default value for custom field of date type

Post by dyawlak » Mar 06, 2008 8:48 am

Ran the Plugin Manager installer but gets as far as Check Install Script and then stops with eror

line 93
Char 1
Error Object expected
Code 0


Any ideas?


Thanks


IIS 6
MSSQL

Thanks

deboutv
Posts: 507
Joined: Jan 15, 2007 9:31 am
Location: La Ciotat, FRANCE
Contact:

Re: Default value for custom field of date type

Post by deboutv » Mar 06, 2008 8:56 am

The PluginManager is installed or the error occurs during the pluginmanager installation?
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

dyawlak
Posts: 66
Joined: Dec 07, 2007 11:42 am

Re: Default value for custom field of date type

Post by dyawlak » Mar 06, 2008 9:32 am

it's when running the plugins_page.php script before I get a chance to install.

deboutv
Posts: 507
Joined: Jan 15, 2007 9:31 am
Location: La Ciotat, FRANCE
Contact:

Re: Default value for custom field of date type

Post by deboutv » Mar 06, 2008 9:47 am

That's strange...

Try to change the file plugins_install_page.php line 93:

$t_failed = ( !$t_error ? PLUGINS_PLUGINMANAGER_OK : PLUGINS_PLUGINMANAGER_FAIL );

becomes:

$t_failed = PLUGINS_PLUGINMANAGER_OK;
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

dyawlak
Posts: 66
Joined: Dec 07, 2007 11:42 am

Re: Default value for custom field of date type

Post by dyawlak » Mar 06, 2008 10:24 am

Nope didn't work.

Now reports that there is a syntax error in line 72. URL reads:
http://mantis.echarris.com/plugins_inst ... ginmanager


Thanks

deboutv
Posts: 507
Joined: Jan 15, 2007 9:31 am
Location: La Ciotat, FRANCE
Contact:

Re: Default value for custom field of date type

Post by deboutv » Mar 06, 2008 10:31 am

With PluginManager 0.2.1?
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

dyawlak
Posts: 66
Joined: Dec 07, 2007 11:42 am

Re: Default value for custom field of date type

Post by dyawlak » Mar 06, 2008 10:39 am

downloaded from your link today pluginmanager-0.2.1.tar.gz

simply unzipped in to the mantis directory as per instructions and tried to run the page.

have re-unzipped in case of corruption

dyawlak
Posts: 66
Joined: Dec 07, 2007 11:42 am

Re: Default value for custom field of date type

Post by dyawlak » Mar 06, 2008 10:49 am

Have done force refresh within browser. It's no longer reporting any errors. but doesn't offer option to install. the last line is Check install script OK then nothing

dyawlak
Posts: 66
Joined: Dec 07, 2007 11:42 am

Re: Default value for custom field of date type

Post by dyawlak » Mar 06, 2008 10:53 am

have attached screenshot of what I'm getting
Attachments
test.TIF
test.TIF (142.91 KiB) Viewed 9168 times

deboutv
Posts: 507
Joined: Jan 15, 2007 9:31 am
Location: La Ciotat, FRANCE
Contact:

Re: Default value for custom field of date type

Post by deboutv » Mar 06, 2008 11:09 am

Do you have access to the error_log file (of your webserver)? There is probably a message.
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

dyawlak
Posts: 66
Joined: Dec 07, 2007 11:42 am

Re: Default value for custom field of date type

Post by dyawlak » Mar 06, 2008 11:26 am

on an iis box, where would i find them?

Post Reply