Skip to content
Snippets Groups Projects

Issue #2875033: Optimize joins and table selection in SQL entity query implementation

Open Rob Mumford requested to merge issue/drupal-2875033:2875033-optimize-joins-and into 9.5.x
2 files
+ 27
2
Compare changes
  • Side-by-side
  • Inline
Files
2
  • 6067ed42
    Issue #221761 by mohit_aghera, pameeela, dixon_, catch, ged3000, sun,... · 6067ed42
    Alex Pott authored
    Issue #221761 by mohit_aghera, pameeela, dixon_, catch, ged3000, sun, deepakaryan1988, smustgrave, stefank, jredding, dawehner, harshit97, xjm, jhedstrom, geertvd, alexpott, Dries: Hide reply link for unpublished comments
@@ -184,7 +184,8 @@ protected function buildLinks(CommentInterface $entity, EntityInterface $comment
];
}
$field_definition = $commented_entity->getFieldDefinition($entity->getFieldName());
if ($entity->access('create')
if ($entity->isPublished()
&& $entity->access('create')
&& $field_definition->getSetting('default_mode') === CommentManagerInterface::COMMENT_MODE_THREADED) {
$links['comment-reply'] = [
'title' => t('Reply'),
Loading