mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
Fixed DB quoting (mainly for non-MySQL compat)
This commit is contained in:
parent
38c99fc66b
commit
ebcd6caa26
@ -45,7 +45,7 @@ class DMSDocument extends DataObject implements DMSDocumentInterface {
|
||||
function addPage($pageObject) {
|
||||
$this->Pages()->add($pageObject);
|
||||
|
||||
DB::query("UPDATE DMSDocument_Pages SET DocumentSort=DocumentSort+1 WHERE SiteTreeID = $pageObject->ID");
|
||||
DB::query("UPDATE \"DMSDocument_Pages\" SET \"DocumentSort\"=\"DocumentSort\"+1 WHERE \"SiteTreeID\" = $pageObject->ID");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user