Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
opigno_dashboard
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
7
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
opigno_dashboard
Merge requests
!5
3455431: Assuring attachments array is not null
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
3455431: Assuring attachments array is not null
issue/opigno_dashboard-3455431:3455431-typeerror-count-argument
into
3.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Open
Mark Casias
requested to merge
issue/opigno_dashboard-3455431:3455431-typeerror-count-argument
into
3.x
6 months ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Closes
#3455431
👍
0
👎
0
Merge request reports
Compare
3.x
3.x (HEAD)
and
latest version
latest version
21a45082
1 commit,
6 months ago
1 file
+
3
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/BlockService.php
+
3
−
1
Options
@@ -200,7 +200,9 @@ class BlockService implements BlockServiceInterface {
}
// Get only unique libraries.
$data
[
'attachments'
][
'library'
]
=
array_unique
(
$data
[
'attachments'
][
'library'
]);
if
(
isset
(
$data
[
'attachments'
][
'library'
]))
{
$data
[
'attachments'
][
'library'
]
=
array_unique
(
$data
[
'attachments'
][
'library'
]);
}
return
$data
;
}
Loading