Skip to content
Snippets Groups Projects
Commit e4846e42 authored by catch's avatar catch
Browse files

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

parent e182bb33
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,8 @@ public function onConfigImporterValidate(ConfigImporterEvent $event) { ...@@ -47,7 +47,8 @@ public function onConfigImporterValidate(ConfigImporterEvent $event) {
foreach (['update', 'delete'] as $op) { foreach (['update', 'delete'] as $op) {
$unprocessed_configurations = $event->getConfigImporter()->getUnprocessedConfiguration($op); $unprocessed_configurations = $event->getConfigImporter()->getUnprocessedConfiguration($op);
foreach ($unprocessed_configurations as $unprocessed_configuration) { 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') { if ($op === 'update') {
$original_workflow_config = $event->getConfigImporter() $original_workflow_config = $event->getConfigImporter()
->getStorageComparer() ->getStorageComparer()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment