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
!3353
[
#3338260
] Added a condition to skip changing affected flag
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
[
#3338260
] Added a condition to skip changing affected flag
issue/drupal-3338260:3338260-skip-changing-revision
into
10.1.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Open
Vitalii Podoba
requested to merge
issue/drupal-3338260:3338260-skip-changing-revision
into
10.1.x
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Closes
#3338260
0
0
Merge request reports
Compare
10.1.x
10.1.x (HEAD)
and
latest version
latest version
35000203
1 commit,
2 years ago
1 file
+
7
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php
+
7
−
0
Options
@@ -1014,6 +1014,13 @@ protected function hasFieldValueChanged(FieldDefinitionInterface $field_definiti
* An entity object being saved.
*/
protected
function
populateAffectedRevisionTranslations
(
ContentEntityInterface
$entity
)
{
// Skip changing affected flag if the entity is syncing and
// the existing revision is updated instead of creating a new one.
// Uses for the content import and migration, when we need to keep
// the field value for the old revisions.
if
(
$entity
->
isSyncing
()
&&
!
$entity
->
isNewRevision
())
{
return
;
}
if
(
$this
->
entityType
->
isTranslatable
()
&&
$this
->
entityType
->
isRevisionable
())
{
$languages
=
$entity
->
getTranslationLanguages
();
foreach
(
$languages
as
$langcode
=>
$language
)
{
Loading