mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
MINOR where[] can't be used for reading
This commit is contained in:
parent
8d138f4059
commit
6abbe5b44f
@ -48,7 +48,7 @@ class MultiFormObjectDecorator extends DataObjectDecorator {
|
|||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
protected function wantsTemporary($query) {
|
protected function wantsTemporary($query) {
|
||||||
foreach($query->where[] as $whereClause) {
|
foreach($query->where as $whereClause) {
|
||||||
if($whereClause == "`{$query->from[0]}`.`MultiFormIsTemporary` = 1") return true;
|
if($whereClause == "`{$query->from[0]}`.`MultiFormIsTemporary` = 1") return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user