aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorendico%mozilla.org <>2000-06-13 16:45:12 +0000
committerendico%mozilla.org <>2000-06-13 16:45:12 +0000
commit09ac5d13cfe25f44900eb8c6c4f4eefb3be385ef (patch)
treef69d263040ee4af89b6e27f21013083f739fe4d7 /Bugzilla
parent2559a21d73e911e69420b98e85740a894a3973d7 (diff)
downloadbugs-09ac5d13cfe25f44900eb8c6c4f4eefb3be385ef.tar
bugs-09ac5d13cfe25f44900eb8c6c4f4eefb3be385ef.tar.gz
bugs-09ac5d13cfe25f44900eb8c6c4f4eefb3be385ef.tar.bz2
bugs-09ac5d13cfe25f44900eb8c6c4f4eefb3be385ef.tar.xz
bugs-09ac5d13cfe25f44900eb8c6c4f4eefb3be385ef.zip
adding toArrayOfStrings subroutine needed by Bug.pm
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/RelationSet.pm14
1 files changed, 14 insertions, 0 deletions
diff --git a/Bugzilla/RelationSet.pm b/Bugzilla/RelationSet.pm
index ee402e7a4..92e2158f2 100644
--- a/Bugzilla/RelationSet.pm
+++ b/Bugzilla/RelationSet.pm
@@ -196,6 +196,20 @@ sub toArray {
return keys(%$self);
}
+# return this set as an array of strings
+#
+sub toArrayOfStrings {
+ ($#_ == 0) || confess("invalid number of arguments");
+ my $self = shift();
+
+ my @result = ();
+ foreach my $i ( keys %$self ) {
+ push @result, &::DBID_to_name($i);
+ }
+
+ return sort(@result);
+}
+
# return this set in string form (comma-separated and sorted)
#
sub toString {