mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
FIX updated wantsTemporary query
This commit is contained in:
parent
49cecd7777
commit
8bd277d9f1
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user