I will add the state to the response. At the moment, I have add the ticket_state_id field to the datatabase table and the output in the overview Table from response.
What I will is, that I can only save one state to one response.
My problem at the moment is, that I don't see the state namens in the DropDown Box from the state table.
I have used the following developer link for help http://dev.otrs.org/3.0/Kernel/System/State.html, but I don't know who is my fail.
Here are the code snippes:
AdminResponse.pm
Code: Select all
$Self->{StateObject} = Kernel::System::State->new(%Param); //add the State classes to the Response
[i]#add after: SelectedAttachments => \@SelectedAttachment,[/i]
SelectedState => \@SelectedState,
#Erweiterung Antworten start
my %StatusData = $Self->{StateObject}->StateTypeList();
$Param{StatusOption} = $Self->{LayoutObject}->BuildSelection(
Data => \%StatusData,
Name => 'State',
SelectedID => $Param{Name},
);
#Erweiterung Antworten ende
Code: Select all
<label for="IDs">$Text{"Status"}:</label>
<div class="Field">$Data{"StatusOption"}</div>