mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
Merge pull request #26 from halkyon/sqlselect
Fixing SQLQuery to SQLSelect for master compatibility
This commit is contained in:
commit
c18262794f
@ -24,7 +24,7 @@ class MultiFormObjectDecorator extends DataExtension {
|
|||||||
'MultiFormSession' => 'MultiFormSession',
|
'MultiFormSession' => 'MultiFormSession',
|
||||||
);
|
);
|
||||||
|
|
||||||
public function augmentSQL(SQLQuery &$query) {
|
public function augmentSQL(SQLSelect $query) {
|
||||||
// If you're querying by ID, ignore the sub-site - this is a bit ugly...
|
// If you're querying by ID, ignore the sub-site - this is a bit ugly...
|
||||||
if(
|
if(
|
||||||
strpos($query->where[0], ".`ID` = ") === false
|
strpos($query->where[0], ".`ID` = ") === false
|
||||||
|
Loading…
Reference in New Issue
Block a user