diff --git a/core/modules/system/system.post_update.php b/core/modules/system/system.post_update.php index 01797aff5d..5de9e8cd02 100644 --- a/core/modules/system/system.post_update.php +++ b/core/modules/system/system.post_update.php @@ -229,6 +229,9 @@ function system_post_update_set_actions_default_weight() { foreach ($config_factory->listAll('system.action.') as $action_name) { $action = $config_factory->getEditable($action_name); $data = $action->getRawData(); + if (!empty($data['weight'])) { + continue; + } // Set appropriate weights to node actions, otherwise set 0 as default // weight for other actions.