[otrs-cvs] otrs/Kernel/Modules AgentTicketProcess.pm,1.39,1.40
"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-serv487/Kernel/Modules
Modified Files:
AgentTicketProcess.pm
Log Message:
- 2013-02-13 Fixed bug#9158 - ProcessManagement: Priority field error message: Need Priority or PriorityID!.
Author: cr
Index: AgentTicketProcess.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Modules/AgentTicketProcess.pm,v
retrieving revision 1.39
retrieving revision 1.40
diff -2 -u -d -r1.39 -r1.40
--- AgentTicketProcess.pm 11 Feb 2013 23:01:07 -0000 1.39
+++ AgentTicketProcess.pm 14 Feb 2013 00:11:20 -0000 1.40
@@ -3181,21 +3181,24 @@
}
+ # get field default value from the config
+ my $DefaultPriority = $Param{ActivityDialogField}->{DefaultValue} || '';
+
if ( $Param{FieldName} eq 'Priority' ) {
- if ( !$SelectedValue ) {
+ if ( !$SelectedValue && $DefaultPriority ) {
- # Fetch DefaultValue from Config
+ # check if default value exist in the system
$SelectedValue = $Self->{PriorityObject}->PriorityLookup(
- Priority => $Param{ActivityDialogField}->{DefaultValue} || '',
+ Priority => $DefaultPriority,
);
if ($SelectedValue) {
- $SelectedValue = $Param{ActivityDialogField}->{DefaultValue};
+ $SelectedValue = $DefaultPriority;
}
}
}
else {
- if ( !$SelectedValue ) {
+ if ( !$SelectedValue && $DefaultPriority ) {
$SelectedValue = $Self->{PriorityObject}->PriorityLookup(
- PriorityID => $Param{ActivityDialogField}->{DefaultValue} || '',
+ PriorityID => $DefaultPriority,
);
}
---------------------------------------------------------------------
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