[otrs-cvs] otrs/Kernel/Modules AdminProcessManagementActivityDialog.pm, 1.30, 1.31

"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-serv11847/Kernel/Modules

Modified Files:
	AdminProcessManagementActivityDialog.pm 
Log Message:
Check for InternalField instead of hard coded field names (cudos 2 CR).

Author: mab

Index: AdminProcessManagementActivityDialog.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Modules/AdminProcessManagementActivityDialog.pm,v
retrieving revision 1.30
retrieving revision 1.31
diff -2 -u -d -r1.30 -r1.31
--- AdminProcessManagementActivityDialog.pm	27 Nov 2012 08:47:40 -0000	1.30
+++ AdminProcessManagementActivityDialog.pm	27 Nov 2012 12:43:43 -0000	1.31
@@ -80,6 +80,10 @@
     for my $DynamicFieldName ( values %{$DynamicFieldList} ) {
         next if !$DynamicFieldName;
-        next if $DynamicFieldName eq 'ProcessManagementProcessID';
-        next if $DynamicFieldName eq 'ProcessManagementActivityID';
+
+        # skip internal fields
+        my $DynamicField = $Self->{DynamicFieldObject}->DynamicFieldGet(
+            Name => $DynamicFieldName,
+        );
+        next if $DynamicField->{InternalField};
 
         $Self->{AvailableFields}->{"DynamicField_$DynamicFieldName"} = $DynamicFieldName;
---------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.