mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG tableName is blank in CompositeDBField->addToQuery
Added call to setTable() to ensure tableName is provided inside addToQuery method.
This commit is contained in:
parent
72e2326731
commit
416915b082
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user