Commit 3611bc65 authored by catch's avatar catch
Browse files

Issue #3416184 by amateescu: Content Moderation should only validate its own workflow type

(cherry picked from commit e4846e42)
parent db5e5c12
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -47,7 +47,8 @@ public function onConfigImporterValidate(ConfigImporterEvent $event) {
    foreach (['update', 'delete'] as $op) {
      $unprocessed_configurations = $event->getConfigImporter()->getUnprocessedConfiguration($op);
      foreach ($unprocessed_configurations as $unprocessed_configuration) {
        if ($workflow = $this->getWorkflow($unprocessed_configuration)) {
        if (($workflow = $this->getWorkflow($unprocessed_configuration))
            && $workflow->getTypePlugin()->getPluginId() === 'content_moderation') {
          if ($op === 'update') {
            $original_workflow_config = $event->getConfigImporter()
              ->getStorageComparer()