FIX updated wantsTemporary query

This commit is contained in:
Franco Springveldt 2017-09-08 15:05:49 +12:00
parent 49cecd7777
commit 8bd277d9f1

View File

@ -69,7 +69,8 @@ class MultiFormObjectDecorator extends DataExtension
foreach ($query->getWhere() as $whereClause) {
$from = array_values($query->getFrom());
// SQLQuery will automatically add double quotes and single quotes to values, so check against that.
if ($whereClause == "{$from[0]}.\"MultiFormIsTemporary\" = '1'") {
$key = key($whereClause);
if ($key == "{$from[0]}.\"MultiFormIsTemporary\" = ?" && current($whereClause[$key]) == 1) {
return true;
}
}