Skip to content

Commit bef7752

Browse files
committed
Fixed a bug in tform library when a value in formdef gets merged with a datasource.
1 parent 7870327 commit bef7752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/tform.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ function getHTML($record, $tab, $action = 'NEW') {
362362
// If Datasource is set, get the data from there
363363
if(isset($field['datasource']) && is_array($field['datasource'])) {
364364
if(is_array($field["value"])) {
365-
$field["value"] = $field["value"] + $this->getDatasourceData($field, $record);
365+
$field["value"] = array_merge($field["value"],$this->getDatasourceData($field, $record));
366366
} else {
367367
$field["value"] = $this->getDatasourceData($field, $record);
368368
}

0 commit comments

Comments
 (0)