From ba254d6b4247c23dbcf4c19dcc3d687f5243f8e0 Mon Sep 17 00:00:00 2001 From: willtp87 Date: Wed, 21 Oct 2015 09:06:48 -0300 Subject: [PATCH] Not overriding set models. --- builder/xml_form_builder.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/xml_form_builder.module b/builder/xml_form_builder.module index e869a202..740c8a38 100644 --- a/builder/xml_form_builder.module +++ b/builder/xml_form_builder.module @@ -560,7 +560,7 @@ function xml_form_builder_update_object(AbstractObject $object, array $associati if ($label) { $object->label = $label; } - $object->models = array($association['content_model']); + $object->models = array_merge($object->models, array($association['content_model'])); $document = $document->document; $run_transforms = !variable_get('xml_form_builder_use_default_dc_xslts', FALSE); if (isset($association['self_transform']) && $association['self_transform'] != 'No Transform' && $run_transforms) {