]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 639151: Fix the webservice Bug.get method to return the correct see
authorTiago Mello <timello@gmail.com>
Sun, 6 Mar 2011 15:01:28 +0000 (12:01 -0300)
committerTiago Mello <timello@gmail.com>
Sun, 6 Mar 2011 15:01:28 +0000 (12:01 -0300)
also url list.
r/a=mkanat

Bugzilla/WebService/Bug.pm

index 86c6ef5dadce1d05bba69c32f8a010c08e4c5720..582a9ce916747f0fd44b6474e3d6acff472abfd3 100644 (file)
@@ -874,7 +874,8 @@ sub _bug_to_hash {
         $item{'qa_contact'} = $self->type('string', $qa_login);
     }
     if (filter_wants $params, 'see_also') {
-        my @see_also = map { $self->type('string', $_) } @{ $bug->see_also };
+        my @see_also = map { $self->type('string', $_->name) }
+                       @{ $bug->see_also };
         $item{'see_also'} = \@see_also;
     }