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
!11353
Check node default revision before reindex.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Check node default revision before reindex.
issue/drupal-1522154:1522154-implementations-of-hooknodeupdate
into
11.x
Overview
6
Commits
14
Pipelines
16
Changes
2
1 unresolved thread
Hide all comments
Open
Sivaji Ganesh Jojodae
requested to merge
issue/drupal-1522154:1522154-implementations-of-hooknodeupdate
into
11.x
3 months ago
Overview
6
Commits
14
Pipelines
16
Changes
2
1 unresolved thread
Hide all comments
Expand
Closes
#1522154
0
0
Merge request reports
Compare
11.x
version 12
3692c52a
2 months ago
version 11
791c995d
2 months ago
version 10
f5ccec5b
2 months ago
version 9
c4ad0ca1
2 months ago
version 8
451004f4
2 months ago
version 7
3f288ad5
2 months ago
version 6
0d59879b
2 months ago
version 5
a03a5412
2 months ago
version 4
de3f921b
2 months ago
version 3
ec28816b
2 months ago
version 2
ab47a92e
2 months ago
version 1
368d3db6
3 months ago
11.x (HEAD)
and
latest version
latest version
770ac35f
14 commits,
1 month ago
version 12
3692c52a
12 commits,
2 months ago
version 11
791c995d
11 commits,
2 months ago
version 10
f5ccec5b
11 commits,
2 months ago
version 9
c4ad0ca1
10 commits,
2 months ago
version 8
451004f4
9 commits,
2 months ago
version 7
3f288ad5
8 commits,
2 months ago
version 6
0d59879b
6 commits,
2 months ago
version 5
a03a5412
5 commits,
2 months ago
version 4
de3f921b
4 commits,
2 months ago
version 3
ec28816b
3 commits,
2 months ago
version 2
ab47a92e
2 commits,
2 months ago
version 1
368d3db6
1 commit,
3 months ago
2 files
+
59
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
core/modules/node/src/Entity/Node.php
+
4
−
3
Options
@@ -171,9 +171,10 @@ public function postSave(EntityStorageInterface $storage, $update = TRUE) {
\Drupal
::
service
(
'node.grant_storage'
)
->
write
(
$this
,
$grants
,
NULL
,
$update
);
}
// Reindex the node when it is updated. The node is automatically indexed
// when it is added, simply by being added to the node table.
if
(
$update
)
{
// Reindex the node when it is updated, but only if it iss the default
// revision. The node is automatically indexed when it is added, simply by
// being added to the node table.
if
(
$update
&&
$this
->
isDefaultRevision
())
{
node_reindex_node_search
(
$this
->
id
());
}
}
Loading