[otrs-cvs] otrs/Kernel/System/DynamicField/Backend Multiselect.pm, 1.51.2.1, 1.51.2.2

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/otrs/Kernel/System/DynamicField/Backend
In directory lancelot:/tmp/cvs-serv10375/Kernel/System/DynamicField/Backend

Modified Files:
      Tag: rel-3_1
	Multiselect.pm 
Log Message:
Fixed bug#9009 - Empty Multiselect Dynamic Fields provokes an error.

Author: cr

Index: Multiselect.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/DynamicField/Backend/Multiselect.pm,v
retrieving revision 1.51.2.1
retrieving revision 1.51.2.2
diff -2 -u -d -r1.51.2.1 -r1.51.2.2
--- Multiselect.pm	28 May 2012 22:43:40 -0000	1.51.2.1
+++ Multiselect.pm	20 Dec 2012 16:01:27 -0000	1.51.2.2
@@ -109,6 +109,11 @@
 
     my @ValueText;
-    for my $Item (@Values) {
-        push @ValueText, { ValueText => $Item };
+    if ( IsArrayRefWithData( \@Values ) ) {
+        for my $Item (@Values) {
+            push @ValueText, { ValueText => $Item };
+        }
+    }
+    else {
+        push @ValueText, { ValueText => '' };
     }
 
---------------------------------------------------------------------
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.