mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE: query fixed for MSSQL
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@72933 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
aaaf9cdfcd
commit
63bd9614d5
@ -143,7 +143,7 @@ class ContentController extends Controller {
|
||||
*/
|
||||
public function getMenu($level = 1) {
|
||||
if($level == 1) {
|
||||
$result = DataObject::get("SiteTree", "\"ShowInMenus\" AND \"ParentID\" = 0");
|
||||
$result = DataObject::get("SiteTree", "\"ShowInMenus\" = 1 AND \"ParentID\" = 0");
|
||||
|
||||
} else {
|
||||
$parent = $this->data();
|
||||
|
Loading…
Reference in New Issue
Block a user