Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 296089

Enabling aggregation breaks views with "Moderation state" fields

$
0
0

Problem

Steps to reproduce

  1. Enable content_moderation
  2. Assign a workflow to a node bundle
  3. Create a new node view and add a "Moderation state" field
  4. Enable aggregation and execute the view

Result:

Drupal\Core\Entity\Sql\SqlContentEntityStorageException: Column information not available for the 'moderation_state' field. in Drupal\Core\Entity\Sql\DefaultTableMapping->getFieldColumnName() (line 430 of core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php).

Proposed resolution

As a workaround the deprecated moderation state relationship can still be used with a view that has aggregation enabled.


Viewing all articles
Browse latest Browse all 296089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>