-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
check if menuRegistry is not empty in MenuBlockService #382
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a test?
Please associate your burdamedia.pl email address with your Github account, or change the email in your commits to an address already associated with it. |
greg0ire, ok I add this email. |
Please check the |
@@ -156,7 +156,9 @@ protected function getFormSettingsKeys() | |||
$choices = $this->menus; | |||
|
|||
if (count($choices) == 0) { | |||
$choices = $this->menuRegistry->getAliasNames(); | |||
if (!empty($this->menuRegistry)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please combine both if
clauses.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping @mar20
Could you please rebase your PR and fix merge conflicts? |
After this PR: #435 This one does not make sense anymore. Closing |
I am targeting this branch, because
sonata.page.block.breadcrumb
don't workCloses #381
Changelog