From 6107956524bb98ae3b2456260bd1c70513fd7d7f Mon Sep 17 00:00:00 2001 From: liyuchun Date: Fri, 31 Dec 2021 09:42:24 +0800 Subject: [PATCH 1/2] * Fix bug #18087. --- module/gitlab/model.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/module/gitlab/model.php b/module/gitlab/model.php index 36eb26016e..4cf23b92f3 100644 --- a/module/gitlab/model.php +++ b/module/gitlab/model.php @@ -1551,7 +1551,13 @@ class gitlabModel extends model if(count($results)<100) break; } - return $allResults; + $tags = array(); + foreach($allResults as $tag) + { + $tags[$tag->name] = $tag; + } + + return $tags; } /** From 9d5829d99c344958f742107ebd9ec2b27d9e7532 Mon Sep 17 00:00:00 2001 From: liyuchun Date: Fri, 31 Dec 2021 09:45:58 +0800 Subject: [PATCH 2/2] * Fix bug #18087. --- module/gitlab/model.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/module/gitlab/model.php b/module/gitlab/model.php index 4cf23b92f3..9c8faa305d 100644 --- a/module/gitlab/model.php +++ b/module/gitlab/model.php @@ -1552,10 +1552,7 @@ class gitlabModel extends model } $tags = array(); - foreach($allResults as $tag) - { - $tags[$tag->name] = $tag; - } + foreach($allResults as $tag) $tags[$tag->name] = $tag; return $tags; }