diff --git a/library/Director/Hook/PropertyModifierHook.php b/library/Director/Hook/PropertyModifierHook.php index bd5f986b..ed97c332 100644 --- a/library/Director/Hook/PropertyModifierHook.php +++ b/library/Director/Hook/PropertyModifierHook.php @@ -28,6 +28,11 @@ abstract class PropertyModifierHook return $class; } + public function hasArraySupport() + { + return false; + } + public function setTargetProperty($property) { $this->targetProperty = $property; diff --git a/library/Director/Objects/ImportSource.php b/library/Director/Objects/ImportSource.php index e1bf868a..385d710a 100644 --- a/library/Director/Objects/ImportSource.php +++ b/library/Director/Objects/ImportSource.php @@ -102,7 +102,7 @@ class ImportSource extends DbObjectWithSettings $target = $mod->getTargetProperty($key); - if (is_array($row->$key)) { + if (is_array($row->$key) && ! $mod->hasArraySupport()) { $new = array(); foreach ($row->$key as $k => $v) { $new[$k] = $mod->transform($v);