Skip to content
Snippets Groups Projects
Commit b77919af authored by James Silver's avatar James Silver Committed by Dave Reid
Browse files

Issue #3308605 by jamsilver, Dave Reid: Fixed fatal error when...

Issue #3308605 by jamsilver, Dave Reid: Fixed fatal error when xmlsitemap_post_update_reindex_future_revision_content() is run against non-bundleable entity types.
parent 265decf2
No related branches found
No related tags found
1 merge request!19Issue #3308605: Post Update...
......@@ -29,7 +29,9 @@ function xmlsitemap_post_update_reindex_future_revision_content() {
$entity_type = $storage->getEntityType();
$query = $storage->getQuery();
$query->currentRevision();
$query->condition($entity_type->getKey('bundle'), $bundles, 'IN');
if ($entity_type->hasKey('bundle')) {
$query->condition($entity_type->getKey('bundle'), $bundles, 'IN');
}
// Disable the access check because we DO want items that are not
// accessible.
$query->accessCheck(FALSE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment