MINOR fixing MultiFormObjectDecorator.php to work on PG

This commit is contained in:
Peter Thaleikis 2015-12-01 23:15:02 +13:00
parent 7ae2e938dc
commit ffa50b1f48

View File

@ -32,7 +32,7 @@ class MultiFormObjectDecorator extends DataExtension {
$where = $query->getWhere();
if(!$where && !$this->wantsTemporary($query)) {
$from = array_values($query->getFrom());
$query->addWhere("{$from[0]}.MultiFormIsTemporary = 0");
$query->addWhere("{$from[0]}.\"MultiFormIsTemporary\" = '0'");
return;
}
@ -43,7 +43,7 @@ class MultiFormObjectDecorator extends DataExtension {
&& !$this->wantsTemporary($query)
) {
$from = array_values($query->getFrom());
$query->addWhere("{$from[0]}.MultiFormIsTemporary = 0");
$query->addWhere("{$from[0]}.\"MultiFormIsTemporary\" = '0'");
}
}