Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
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
drupal
Merge requests
!10880
Disallow saving invalid non-default revisions
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Disallow saving invalid non-default revisions
issue/drupal-3499181:3499181-disallow-saving-the
into
11.x
Overview
25
Commits
20
Pipelines
16
Changes
8
Closed
Sascha Grossenbacher
requested to merge
issue/drupal-3499181:3499181-disallow-saving-the
into
11.x
3 months ago
Overview
20
Commits
20
Pipelines
16
Changes
8
Expand
Closes
#3499181
0
0
Merge request reports
Compare
11.x
version 15
409709f9
1 month ago
version 14
322fdcd3
1 month ago
version 13
08b1f08b
2 months ago
version 12
ec605a2d
2 months ago
version 11
bd63c718
2 months ago
version 10
6e752379
2 months ago
version 9
3f1d183a
3 months ago
version 8
eb441b55
3 months ago
version 7
ea4ae117
3 months ago
version 6
31304fc1
3 months ago
version 5
72ce5100
3 months ago
version 4
14876bff
3 months ago
version 3
8720d936
3 months ago
version 2
267cbc25
3 months ago
version 1
7bdf0925
3 months ago
11.x (base)
and
latest version
latest version
eac57a7d
20 commits,
1 month ago
version 15
409709f9
18 commits,
1 month ago
version 14
322fdcd3
17 commits,
1 month ago
version 13
08b1f08b
16 commits,
2 months ago
version 12
ec605a2d
15 commits,
2 months ago
version 11
bd63c718
14 commits,
2 months ago
version 10
6e752379
13 commits,
2 months ago
version 9
3f1d183a
12 commits,
3 months ago
version 8
eb441b55
11 commits,
3 months ago
version 7
ea4ae117
10 commits,
3 months ago
version 6
31304fc1
9 commits,
3 months ago
version 5
72ce5100
8 commits,
3 months ago
version 4
14876bff
4 commits,
3 months ago
version 3
8720d936
3 commits,
3 months ago
version 2
267cbc25
2 commits,
3 months ago
version 1
7bdf0925
1 commit,
3 months ago
8 files
+
61
−
15
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
core/lib/Drupal/Core/Entity/ContentEntityBase.php
+
5
−
5
Options
@@ -345,13 +345,13 @@ public function isNewRevision() {
* {@inheritdoc}
*/
public
function
isDefaultRevision
(
$new_value
=
NULL
)
{
$return
=
$this
->
isDefaultRevision
;
if
(
isset
(
$new_value
))
{
$this
->
isDefaultRevision
=
(
bool
)
$new_value
;
}
$current_value
=
$this
->
isDefaultRevision
;
// New entities should always ensure at least one default revision exists,
// creating an entity without a default revision is an invalid state.
return
$this
->
isNew
()
||
$return
;
if
(
isset
(
$new_value
)
&&
(
!
$this
->
isNew
()
||
$new_value
===
TRUE
))
{
$this
->
isDefaultRevision
=
(
bool
)
$new_value
;
}
return
(
bool
)
$current_value
;
}
/**
Loading