]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1156240: Return proper "See Also" data on REST API call to a bug
authorDavid Lawrence <dkl@mozilla.com>
Tue, 21 Apr 2015 15:07:29 +0000 (16:07 +0100)
committerDavid Lawrence <dkl@mozilla.com>
Tue, 21 Apr 2015 15:07:29 +0000 (16:07 +0100)
r=dkl,a=glob

Bugzilla/API/1_0/Resource/Bug.pm

index 6797526c4af548617a00922d4415246d7f658214..f79dad72efee1af05197fc75658c010c3fe83e5b 100644 (file)
@@ -1425,7 +1425,7 @@ sub _bug_to_hash {
         }
     }
     if (filter_wants $params, 'see_also') {
-        $item{'see_also'} = as_string_array($bug->see_also);
+        $item{'see_also'} = as_name_array($bug->see_also);
     }
     if (filter_wants $params, 'flags') {
         $item{'flags'} = [ map { $self->_flag_to_hash($_) } @{$bug->flags} ];