I Have defined CI's In which it has Date fields.
While adding a new CI, the date field is set to system date by default.
how can i disable the date filed (Leave empty).
New CI Date Field keep Empty
Moderator: crythias
-
- Znuny newbie
- Posts: 85
- Joined: 25 Jan 2011, 06:54
- Znuny Version: OTRS 3
- Company: eStomi Technologies Pvt Ltd
- Contact:
New CI Date Field keep Empty
You do not have the required permissions to view the files attached to this post.
OTRS 3.2.x, Linux Ubuntu, Mysql 5.1.
Re: New CI Date Field keep Empty
Hello, I am running into the same issue. Were you able to set the default date field? If so, how did you do this? Thanks.
-
- Znuny newbie
- Posts: 85
- Joined: 25 Jan 2011, 06:54
- Znuny Version: OTRS 3
- Company: eStomi Technologies Pvt Ltd
- Contact:
Re: New CI Date Field keep Empty
No I could Not. Have this issue still Open 

OTRS 3.2.x, Linux Ubuntu, Mysql 5.1.
Re: New CI Date Field keep Empty
Same here, I've changed our date fields to be text fields and make sure to enter it in the date format needed.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: New CI Date Field keep Empty
Try this in Kernel/System/Layout.pm
(this is global, by the way, so)
See entries like this?
They call sub BuildSelection which has a configuration option
PossibleNone => 1,
So, you should be able to include this line in the above to allow empty. Although, that doesn't make it empty on load. But, while you're there, you might comment out that SelectedID entry.
(this is global, by the way, so)
See entries like this?
Code: Select all
$Param{Month} = $Self->BuildSelection(
Name => $Prefix . 'Month',
Data => \%Month,
SelectedID => int( $Param{ $Prefix . 'Month' } || $M ),
Translation => 0,
Class => $Validate ? 'Validate_DateMonth' : '',
Title => $Self->{LanguageObject}->Get('Month'),
);
Code: Select all
$Param{Day} = $Self->BuildSelection(
Name => $Prefix . 'Day',
Data => \%Day,
SelectedID => int( $Param{ $Prefix . 'Day' } || $D ),
Translation => 0,
Class => "$DateValidateClasses $Class",
Title => $Self->{LanguageObject}->Get('Day'),
);
PossibleNone => 1,
So, you should be able to include this line in the above to allow empty. Although, that doesn't make it empty on load. But, while you're there, you might comment out that SelectedID entry.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask