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

merge-requests/6849/head
catch 2024-03-01 11:27:13 +00:00
parent e182bb3350
commit e4846e4262
1 changed files with 2 additions and 1 deletions

View File

@ -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()