[otrs-cvs] otrs/Kernel/Modules AgentTicketProcess.pm,1.23,1.24
"CVS commits notifications of OTRS.org" <[email protected]>
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/otrs/Kernel/Modules
In directory lancelot:/tmp/cvs-serv10579/Kernel/Modules
Modified Files:
AgentTicketProcess.pm
Log Message:
Fixed saving of updated title. Fixed display of preselected owner and responsible.
Author: sb
Index: AgentTicketProcess.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Modules/AgentTicketProcess.pm,v
retrieving revision 1.23
retrieving revision 1.24
diff -2 -u -d -r1.23 -r1.24
--- AgentTicketProcess.pm 20 Nov 2012 14:51:39 -0000 1.23
+++ AgentTicketProcess.pm 28 Nov 2012 13:19:43 -0000 1.24
@@ -2468,11 +2468,17 @@
}
+ # look up $SelectedID
+ my $SelectedID = $Self->{UserObject}->UserLookup(
+ UserLogin => $SelectedValue,
+ )
+ if $SelectedValue;
+
# build Responsible string
$Data{Content} = $Self->{LayoutObject}->BuildSelection(
- Data => $Responsibles,
- Name => 'ResponsibleID',
- Translation => 1,
- SelectedValue => $SelectedValue,
- Class => $ServerError,
+ Data => $Responsibles,
+ Name => 'ResponsibleID',
+ Translation => 1,
+ SelectedID => $SelectedID,
+ Class => $ServerError,
);
@@ -2589,11 +2595,17 @@
}
+ # look up $SelectedID
+ my $SelectedID = $Self->{UserObject}->UserLookup(
+ UserLogin => $SelectedValue,
+ )
+ if $SelectedValue;
+
# build Owner string
$Data{Content} = $Self->{LayoutObject}->BuildSelection(
- Data => $Owners,
- Name => 'OwnerID',
- Translation => 1,
- SelectedValue => $SelectedValue,
- Class => $ServerError,
+ Data => $Owners,
+ Name => 'OwnerID',
+ Translation => 1,
+ SelectedID => $SelectedID,
+ Class => $ServerError,
);
@@ -3861,5 +3873,5 @@
if (
!defined $TicketParam{'Title'}
- || ( defined $TicketParam{'Title'} && $TicketParam{'Title'} ne '' )
+ || ( defined $TicketParam{'Title'} && $TicketParam{'Title'} eq '' )
)
{
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log