[otrs-cvs] otrs/Kernel/Modules AdminProcessManagementActivity.pm, 1.20, 1.21
"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-serv13243/Kernel/Modules
Modified Files:
AdminProcessManagementActivity.pm
Log Message:
Fixed list of available activity dialogs for a new activity. The availability of an activity dialog in agent or customer interface is now shown correctly.
Author: mn
Index: AdminProcessManagementActivity.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Modules/AdminProcessManagementActivity.pm,v
retrieving revision 1.20
retrieving revision 1.21
diff -2 -u -d -r1.20 -r1.21
--- AdminProcessManagementActivity.pm 20 Nov 2012 14:42:03 -0000 1.20
+++ AdminProcessManagementActivity.pm 22 Jan 2013 08:17:59 -0000 1.21
@@ -1,5 +1,5 @@
# --
# Kernel/Modules/AdminProcessManagementActivity.pm - process management activity
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
# --
# $Id$
@@ -844,10 +844,30 @@
my $ActivityDialogData = $AvailableActivityDialogsLookup{$EntityID};
+ my $AvailableIn = '';
+ my $ConfigAvailableIn = $ActivityDialogData->{Config}->{Interface};
+
+ if ( defined $ConfigAvailableIn ) {
+ my $InterfaceLength = scalar @{$ConfigAvailableIn};
+ if ( $InterfaceLength == 2 ) {
+ $AvailableIn = 'A, C';
+ }
+ elsif ( $InterfaceLength == 1 ) {
+ $AvailableIn = substr( $ConfigAvailableIn->[0], 0, 1 );
+ }
+ else {
+ $AvailableIn = 'A';
+ }
+ }
+ else {
+ $AvailableIn = 'A';
+ }
+
$Self->{LayoutObject}->Block(
Name => 'AvailableActivityDialogRow',
Data => {
- ID => $ActivityDialogData->{ID},
- EntityID => $ActivityDialogData->{EntityID},
- Name => $ActivityDialogData->{Name},
+ ID => $ActivityDialogData->{ID},
+ EntityID => $ActivityDialogData->{EntityID},
+ Name => $ActivityDialogData->{Name},
+ AvailableIn => $AvailableIn,
},
);
---------------------------------------------------------------------
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