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

Added an exception to AdminLanguage component + typo #740

Merged
merged 2 commits into from
Dec 18, 2022

Conversation

Antikon
Copy link
Contributor

@Antikon Antikon commented Dec 17, 2022

What are you changing/introducing

AdminLanguage component will fire an exception when no default language can be found.

What is the reason for changing/introducing

When no default language set in the system an expressions like $this->getDefaultLanguage()['short_code'] will produce errors since $this->getDefaultLanguage() is false.

An exception will give a more meaningful error message.

QA

Q A
Is bugfix? yes
New feature? no
Breaks BC? no
Tests pass? yes

Copy link
Member

@nadar nadar left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Could you please add a changelog?

@nadar
Copy link
Member

nadar commented Dec 18, 2022

Thanks @Antikon 👍

@nadar nadar merged commit 0e408da into luyadev:master Dec 18, 2022
@Antikon Antikon deleted the defaultAdminLangException branch December 18, 2022 10:56
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.

2 participants