diff --git a/Kernel/Output/HTML/Layout.pm b/Kernel/Output/HTML/Layout.pm
index dfd2d3850f..5f7835b627 100644
--- a/Kernel/Output/HTML/Layout.pm
+++ b/Kernel/Output/HTML/Layout.pm
@@ -3511,6 +3511,7 @@ Depending on the SysConfig settings the controls to set the date could be multip
# client side with JS
Disabled => 1, # optional (1 or 0), when active select and checkbox controls gets the
# disabled attribute and input fields gets the read only attribute
+ Suffix => 'some suffix', # optional, is attachted at the end of Names, IDs etc.
);
=cut
@@ -3523,6 +3524,7 @@ sub BuildDateSelection {
my $DateInputStyle = $ConfigObject->Get('TimeInputFormat');
my $MinuteStep = $ConfigObject->Get('TimeInputMinutesStep');
my $Prefix = $Param{Prefix} || '';
+ my $Suffix = $Param{Suffix} || '';
my $DiffTime = $Param{DiffTime} || 0;
my $Format = defined( $Param{Format} ) ? $Param{Format} : 'DateInputFormatLong';
my $Area = $Param{Area} || 'Agent';
@@ -3624,7 +3626,7 @@ sub BuildDateSelection {
}
$Param{Year} = $Self->BuildSelection(
- Name => $Prefix . 'Year',
+ Name => $Prefix . 'Year' . $Suffix,
Data => \%Year,
SelectedID => int( $Param{ $Prefix . 'Year' } || $Y ),
Translation => 0,
@@ -3636,7 +3638,7 @@ sub BuildDateSelection {
else {
$Param{Year} = "{LanguageObject}->Translate('Year')
. "\" value=\""
@@ -3648,7 +3650,7 @@ sub BuildDateSelection {
if ( $DateInputStyle eq 'Option' ) {
my %Month = map { $_ => sprintf( "%02d", $_ ); } ( 1 .. 12 );
$Param{Month} = $Self->BuildSelection(
- Name => $Prefix . 'Month',
+ Name => $Prefix . 'Month' . $Suffix,
Data => \%Month,
SelectedID => int( $Param{ $Prefix . 'Month' } || $M ),
Translation => 0,
@@ -3660,7 +3662,7 @@ sub BuildDateSelection {
else {
$Param{Month} = "{LanguageObject}->Translate('Month')
. "\" value=\""
@@ -3671,11 +3673,11 @@ sub BuildDateSelection {
my $DateValidateClasses = '';
if ($Validate) {
$DateValidateClasses
- .= "Validate_DateDay Validate_DateYear_${Prefix}Year Validate_DateMonth_${Prefix}Month";
+ .= "Validate_DateDay Validate_DateYear_${Prefix}Year${Suffix} Validate_DateMonth_${Prefix}Month${Suffix}";
if ( $Format eq 'DateInputFormatLong' ) {
$DateValidateClasses
- .= " Validate_DateHour_${Prefix}Hour Validate_DateMinute_${Prefix}Minute";
+ .= " Validate_DateHour_${Prefix}Hour${Suffix} Validate_DateMinute_${Prefix}Minute${Suffix}";
}
if ($ValidateDateInFuture) {
@@ -3702,7 +3704,7 @@ sub BuildDateSelection {
if ( $DateInputStyle eq 'Option' ) {
my %Day = map { $_ => sprintf( "%02d", $_ ); } ( 1 .. 31 );
$Param{Day} = $Self->BuildSelection(
- Name => $Prefix . 'Day',
+ Name => $Prefix . 'Day' . $Suffix,
Data => \%Day,
SelectedID => int( $Param{ $Prefix . 'Day' } || $D ),
Translation => 0,
@@ -3716,7 +3718,7 @@ sub BuildDateSelection {
else {
$Param{Day} = "{LanguageObject}->Translate('Day')
. "\" value=\""
@@ -3730,7 +3732,7 @@ sub BuildDateSelection {
if ( $DateInputStyle eq 'Option' ) {
my %Hour = map { $_ => sprintf( "%02d", $_ ); } ( 0 .. 23 );
$Param{Hour} = $Self->BuildSelection(
- Name => $Prefix . 'Hour',
+ Name => $Prefix . 'Hour' . $Suffix,
Data => \%Hour,
SelectedID => defined( $Param{ $Prefix . 'Hour' } )
? int( $Param{ $Prefix . 'Hour' } )
@@ -3744,7 +3746,7 @@ sub BuildDateSelection {
else {
$Param{Hour} = "{LanguageObject}->Translate('Hours')
. "\" value=\""
@@ -3761,7 +3763,7 @@ sub BuildDateSelection {
if ( $DateInputStyle eq 'Option' ) {
my %Minute = map { $_ => sprintf( "%02d", $_ ); } map { $_ * $MinuteStep } ( 0 .. ( 60 / $MinuteStep - 1 ) );
$Param{Minute} = $Self->BuildSelection(
- Name => $Prefix . 'Minute',
+ Name => $Prefix . 'Minute' . $Suffix,
Data => \%Minute,
SelectedID => defined( $Param{ $Prefix . 'Minute' } )
? int( $Param{ $Prefix . 'Minute' } )
@@ -3775,7 +3777,7 @@ sub BuildDateSelection {
else {
$Param{Minute} = "{LanguageObject}->Translate('Minutes')
. "\" value=\""
@@ -3812,7 +3814,7 @@ sub BuildDateSelection {
}
$Output .= "