mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX: Fixed ef81318aea
for PostgreSQL by quoting fields.
This commit is contained in:
parent
4e1b6af10f
commit
323fd4aa0f
@ -176,7 +176,7 @@ class ManyManyList extends RelationList {
|
||||
// @todo Optimize into a single query instead of one per extra field
|
||||
if($this->extraFields) {
|
||||
foreach($this->extraFields as $fieldName => $dbFieldSpec) {
|
||||
$query = new SQLQuery($fieldName, array("\"$this->joinTable\""));
|
||||
$query = new SQLQuery("\"$fieldName\"", array("\"$this->joinTable\""));
|
||||
if($filter = $this->foreignIDFilter()) {
|
||||
$query->setWhere($filter);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user