Sync: Allow syncing lists of template imports

fixes #946
This commit is contained in:
Peter Backes 2017-05-22 14:34:58 +02:00 committed by Thomas Gelf
parent 66ff070c77
commit ad825f9c58
1 changed files with 5 additions and 1 deletions

View File

@ -436,7 +436,11 @@ class Sync
$newVars[$varName] = $val;
} else {
if ($prop === 'import') {
$imports[] = $val;
if (is_array($val)) {
$imports = array_merge($imports, $val);
} elseif (!is_null($val)) {
$imports[] = $val;
}
} else {
$newProps[$prop] = $val;
}