From 416915b08248285083518850ad8d015ca8ed25c2 Mon Sep 17 00:00:00 2001 From: Dominik Beerbohm Date: Fri, 26 Jan 2018 08:46:50 +0100 Subject: [PATCH] BUG tableName is blank in CompositeDBField->addToQuery Added call to setTable() to ensure tableName is provided inside addToQuery method. --- model/DataQuery.php | 1 + 1 file changed, 1 insertion(+) diff --git a/model/DataQuery.php b/model/DataQuery.php index 733576526..83ef0b618 100644 --- a/model/DataQuery.php +++ b/model/DataQuery.php @@ -490,6 +490,7 @@ class DataQuery { if($compositeFields) foreach($compositeFields as $k => $v) { if((is_null($columns) || in_array($k, $columns)) && $v) { $dbO = Object::create_from_string($v, $k); + $dbO->setTable($tableClass); $dbO->addToQuery($query); } }