mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed sql quoting bug in ModelAsController
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@68165 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
9e145705bc
commit
05aa3503ec
@ -33,7 +33,7 @@ class ModelAsController extends Controller implements NestedController {
|
||||
if($this->urlParams['URLSegment']) {
|
||||
$SQL_URLSegment = Convert::raw2sql($this->urlParams['URLSegment']);
|
||||
if (Translatable::is_enabled()) {
|
||||
$child = Translatable::get_one("SiteTree", "SiteTree."\"URLSegment\" = '$SQL_URLSegment'", false);
|
||||
$child = Translatable::get_one("SiteTree", "SiteTree.\"URLSegment\" = '$SQL_URLSegment'", false);
|
||||
} else {
|
||||
$child = DataObject::get_one("SiteTree", "SiteTree.\"URLSegment\" = '$SQL_URLSegment'", false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user