From bef7752075fecbb551e177475658e88a9d65f8d4 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 3 Aug 2010 20:07:17 +0000
Subject: [PATCH] Fixed a bug in tform library when a value in formdef gets
 merged with a datasource.

---
 interface/lib/classes/tform.inc.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/interface/lib/classes/tform.inc.php b/interface/lib/classes/tform.inc.php
index e790a8bf05..8a56e1f262 100644
--- a/interface/lib/classes/tform.inc.php
+++ b/interface/lib/classes/tform.inc.php
@@ -362,7 +362,7 @@ class tform {
                                         // If Datasource is set, get the data from there
                                         if(isset($field['datasource']) && is_array($field['datasource'])) {
 												if(is_array($field["value"])) {
-													$field["value"] = $field["value"] + $this->getDatasourceData($field, $record);
+													$field["value"] = array_merge($field["value"],$this->getDatasourceData($field, $record));
 												} else {
                                                 	$field["value"] = $this->getDatasourceData($field, $record);
 												}
-- 
GitLab