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

allow to switch content language on list and filter by language #119

Closed
wants to merge 1 commit into from
Closed

allow to switch content language on list and filter by language #119

wants to merge 1 commit into from

Conversation

dbu
Copy link
Contributor

@dbu dbu commented Jul 12, 2016

fix #81, fix #83

continuation of #83, #84

@dbu
Copy link
Contributor Author

dbu commented Jul 12, 2016

@mcrinquand can you please review this PR and check if it still works as intended? and it would be awesome if you could add a bit of documentation how this is to be used.

@@ -2,8 +2,15 @@
{% set admin = block_context.settings.admin %}
{% set locale_switcher_route = block_context.settings.locale_switcher_route %}
{% set locale_switcher_route_parameters = block_context.settings.locale_switcher_route_parameters %}
{% set currentLocale = object.locale %}
Copy link

@skyosev skyosev Jul 29, 2016

Choose a reason for hiding this comment

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

object is null in the list route, so trying to access its property throws an exception:

Impossible to access an attribute ("locale") on a null variable in SonataTranslationBundle:Block:block_locale_switcher.html.twig

@dbu
Copy link
Contributor Author

dbu commented Aug 3, 2016

@mcrinquand seems to not respond. if somebody has the time to wrap this up, would be cool. i only attempted to clean up the code, but don't have much time to follow up.

@SonataCI
Copy link
Collaborator

Could you please rebase your PR and fix merge conflicts?

@OskarStark
Copy link
Member

any news on this PR @dbu ?

@dbu
Copy link
Contributor Author

dbu commented Sep 8, 2016

no updates. i only updated the code started by @mcrinquand but don't have time to wrap this up.

@dmarkowicz
Copy link
Contributor

dmarkowicz commented Dec 11, 2016

I merged conflicts, fixed null exception and added documentation for translationFieldFilter here: https://github.com/dmarkowicz/SonataTranslationBundle/compare/2.x...translate-gedmo-lists. Should I open another PR or is there any other solution to continue this one?

@greg0ire
Copy link
Contributor

I think you should open a new one.

@dmarkowicz
Copy link
Contributor

It may be closed because #143 already merged.

@core23 core23 closed this Dec 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants