Default value for custom field of date type

Get help from other users here.

Moderators: Developer, Contributor

dyawlak
Posts: 66
Joined: 07 Dec 2007, 16:42

Default value for custom field of date type

Post by dyawlak »

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


Thanks
cybernijntje
Posts: 1
Joined: 06 Feb 2008, 09:46

Re: Default value for custom field of date type

Post by cybernijntje »

Same question here. Does anyone have an answer?
dyawlak
Posts: 66
Joined: 07 Dec 2007, 16:42

Re: Default value for custom field of date type

Post by dyawlak »

Does any one have a solution for this?

Thanks
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Re: Default value for custom field of date type

Post by deboutv »

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: 07 Dec 2007, 16:42

Re: Default value for custom field of date type

Post by dyawlak »

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: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Re: Default value for custom field of date type

Post by deboutv »

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: 07 Dec 2007, 16:42

Re: Default value for custom field of date type

Post by dyawlak »

it's when running the plugins_page.php script before I get a chance to install.
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Re: Default value for custom field of date type

Post by deboutv »

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: 07 Dec 2007, 16:42

Re: Default value for custom field of date type

Post by dyawlak »

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: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Re: Default value for custom field of date type

Post by deboutv »

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: 07 Dec 2007, 16:42

Re: Default value for custom field of date type

Post by dyawlak »

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: 07 Dec 2007, 16:42

Re: Default value for custom field of date type

Post by dyawlak »

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: 07 Dec 2007, 16:42

Re: Default value for custom field of date type

Post by dyawlak »

have attached screenshot of what I'm getting
Attachments
test.TIF
test.TIF (142.91 KiB) Viewed 13905 times
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Re: Default value for custom field of date type

Post by deboutv »

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: 07 Dec 2007, 16:42

Re: Default value for custom field of date type

Post by dyawlak »

on an iis box, where would i find them?
Post Reply