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:
Geoff Munn 2009-03-11 23:04:50 +00:00
parent aaaf9cdfcd
commit 63bd9614d5

View File

@ -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();