Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
project
Commits
41ad17c1
Commit
41ad17c1
authored
May 12, 2020
by
drumm
Browse files
Issue
#3117465
: Fix notices when a release is unpublished
parent
1f220a46
Changes
1
Hide whitespace changes
Inline
Side-by-side
usage/project_usage.module
View file @
41ad17c1
...
...
@@ -253,6 +253,10 @@ function project_usage_restws_response_alter(&$response, $function, $formatName,
}
foreach
(
$usage
as
$project_nid
=>
$releases
)
{
foreach
(
$releases
as
$nid
=>
$count
)
{
if
(
!
isset
(
$release_branches
[
$nid
]))
{
// Release is unpublished, or otherwise missing.
continue
;
}
if
(
isset
(
$response
[
'list'
][
$nid_map
[
$project_nid
]][
'project_usage'
][
$release_branches
[
$nid
]]))
{
$response
[
'list'
][
$nid_map
[
$project_nid
]][
'project_usage'
][
$release_branches
[
$nid
]]
+=
$count
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment