diff --git a/Kernel/Modules/AdminState.pm b/Kernel/Modules/AdminState.pm index d18d354fc3..e1f9f656df 100644 --- a/Kernel/Modules/AdminState.pm +++ b/Kernel/Modules/AdminState.pm @@ -352,11 +352,16 @@ sub _Edit { SelectedID => $Param{ValidID} || $ValidListReverse{valid}, Class => 'Modernize Validate_Required ' . ( $Param{Errors}->{'ValidIDInvalid'} || '' ), ); + + my $SelectedStateID = $StateObject->StateLookup( + StateType => 'pending reminder', + ) || ''; + # default selected state type is 'pending reminder' $Param{StateTypeOption} = $LayoutObject->BuildSelection( Data => { $StateObject->StateTypeList( UserID => 1 ), }, Name => 'TypeID', - SelectedID => $Param{TypeID} || 4, + SelectedID => $Param{TypeID} || $SelectedStateID, Class => 'Modernize Validate_Required ' . ( $Param{Errors}->{'TypeIDInvalid'} || '' ), ); $LayoutObject->Block(