From ad825f9c58322b0913bf3a11b8a2d0340198b3c5 Mon Sep 17 00:00:00 2001 From: Peter Backes Date: Mon, 22 May 2017 14:34:58 +0200 Subject: [PATCH] Sync: Allow syncing lists of template imports fixes #946 --- library/Director/Import/Sync.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/library/Director/Import/Sync.php b/library/Director/Import/Sync.php index 82976786..00e1678f 100644 --- a/library/Director/Import/Sync.php +++ b/library/Director/Import/Sync.php @@ -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; }