Skip to content

Commit ce9de38

Browse files
committed
Issue #2016: Set default selected state type to pending reminder
1 parent e05b7c7 commit ce9de38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Kernel/Modules/AdminState.pm

+2-1
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,11 @@ sub _Edit {
352352
SelectedID => $Param{ValidID} || $ValidListReverse{valid},
353353
Class => 'Modernize Validate_Required ' . ( $Param{Errors}->{'ValidIDInvalid'} || '' ),
354354
);
355+
# default selected state type is 'pending reminder'
355356
$Param{StateTypeOption} = $LayoutObject->BuildSelection(
356357
Data => { $StateObject->StateTypeList( UserID => 1 ), },
357358
Name => 'TypeID',
358-
SelectedID => $Param{TypeID},
359+
SelectedID => $Param{TypeID} || 4,
359360
Class => 'Modernize Validate_Required ' . ( $Param{Errors}->{'TypeIDInvalid'} || '' ),
360361
);
361362
$LayoutObject->Block(

0 commit comments

Comments
 (0)