Issue #3416184 by amateescu: Content Moderation should only validate its own workflow type
parent
e182bb3350
commit
e4846e4262
|
@ -47,7 +47,8 @@ class ConfigImportSubscriber extends ConfigImportValidateEventSubscriberBase {
|
|||
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()
|
||||
|
|
Loading…
Reference in New Issue