Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MenuBundle] Do not require online NodeTranslation for url_link MenuItems #925

Merged
merged 1 commit into from
Jan 20, 2016
Merged

[MenuBundle] Do not require online NodeTranslation for url_link MenuItems #925

merged 1 commit into from
Jan 20, 2016

Conversation

wesleylancel
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets n/a

@@ -25,7 +26,8 @@ public function getMenuItemsForLanguage($menuName, $locale)
->setParameter('locale', $locale)
->andWhere('m.name = :name')
->setParameter('name', $menuName)
->andWhere('nt.online = 1');
->andWhere('nt.online = 1 OR mi.type = :url_type')
->setParameter('url_type', MenuItem::TYPE_URL_LINK);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is better to use BaseMenuItem::TYPE_URL_LINK because the MenuItem entity can be overridden via configuration.

jockri pushed a commit that referenced this pull request Jan 20, 2016
[MenuBundle] Do not require online NodeTranslation for url_link MenuItems
@jockri jockri merged commit 1769dea into Kunstmaan:master Jan 20, 2016
@jockri jockri added this to the 3.5.0 milestone Jan 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants