When using the field Translation moderation field on a view where there is both content that belong to a workflow and content without a workflow you will get this error:

Error: Call to a member function getTypePlugin() on null in Drupal\translation_views\Plugin\views\field\TranslationModerationState->render() (line 143 of /home/dmcqv/www/modules/contrib/translation_views/src/Plugin/views/field/TranslationModerationState.php)

We need to check that the revision belong to a workflow before we try get the moderation state of it.

Comments

matsbla created an issue. See original summary.

matsbla’s picture

Title: Error when user Translation modereation state field in view with bot moderated and non-moderated content » Error when user Translation modereation state field in view with both moderated and non-moderated content
matsbla’s picture

Title: Error when user Translation modereation state field in view with both moderated and non-moderated content » Error when using Translation modereation state field in a view with both moderated and non-moderated content

  • matsbla committed 82f7a79 on 8.x-1.x
    Issue #3002357 by matsbla: Error when using Translation modereation...
matsbla’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.