Commit d9666b27 authored by webchick's avatar webchick

Issue #1887244 by beejeebus: Use Config->save() and Config->delete() on import.

parent d0492226
......@@ -182,14 +182,14 @@ function config_sync_changes(array $config_changes, StorageInterface $source_sto
$factory = drupal_container()->get('config.factory');
foreach (array('delete', 'create', 'change') as $op) {
foreach ($config_changes[$op] as $name) {
// Validate the configuration object name before importing it.
$config = new Config($name, $target_storage);
if ($op == 'delete') {
else {
$data = $source_storage->read($name);
$target_storage->write($name, $data);
$config->setData($data ? $data : array());
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment