Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
entity_hierarchy
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
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
entity_hierarchy
Merge requests
!24
Removing the 'Test entity' reference.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Removing the 'Test entity' reference.
issue/entity_hierarchy-3402970:3402970-child-hierarchy-notice
into
3.x
Overview
0
Commits
1
Pipelines
2
Changes
3
Merged
nterbogt
requested to merge
issue/entity_hierarchy-3402970:3402970-child-hierarchy-notice
into
3.x
1 year ago
Overview
0
Commits
1
Pipelines
2
Changes
3
Expand
Closes
#3402970
0
0
Merge request reports
Compare
3.x
version 1
a46d8060
1 year ago
3.x (base)
and
latest version
latest version
a46d8060
1 commit,
1 year ago
version 1
a46d8060
1 commit,
1 year ago
3 files
+
7
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
src/Information/ChildEntityWarning.php
+
4
−
4
Options
@@ -81,16 +81,16 @@ class ChildEntityWarning {
return
new
PluralTranslatableMarkup
(
// Related entities includes the parent, so we remove that.
$this
->
relatedEntities
->
count
()
-
1
,
'This
Test
entity has 1 child, deleting this item will change its parent to be @parent.'
,
'This
Test
entity has @count children, deleting this item will change their parent to be @parent.'
,
'This entity has 1 child, deleting this item will change its parent to be @parent.'
,
'This entity has @count children, deleting this item will change their parent to be @parent.'
,
[
'@parent'
=>
$this
->
relatedEntities
->
offsetGet
(
$this
->
parent
)
->
label
(),
]);
}
return
new
PluralTranslatableMarkup
(
$this
->
relatedEntities
->
count
(),
'This
Test
entity has 1 child, deleting this item will move that item to the root of the hierarchy.'
,
'This
Test
entity has @count children, deleting this item will move those items to the root of the hierarchy.'
);
'This entity has 1 child, deleting this item will move that item to the root of the hierarchy.'
,
'This entity has @count children, deleting this item will move those items to the root of the hierarchy.'
);
}
}
Loading