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

Fix currency display on not existing language #13525

Merged
merged 4 commits into from Apr 24, 2019

Conversation

tomlev
Copy link
Contributor

@tomlev tomlev commented Apr 23, 2019

Questions Answers
Branch? 1.7.6.x
Description? fix an issue displaying currency on FO after installing new language
Type? bug fix
Category? FO
BC breaks? no
Deprecations? no
Fixed ticket? fixes #13483
How to test? on BO > localization > international > languages > add new language. On FO select this just added language. You should not have a php error anymore

This change is Reviewable

@tomlev tomlev requested a review from a team as a code owner April 23, 2019 10:54
@prestonBot prestonBot added 1.7.6.x Branch Bug Type: Bug labels Apr 23, 2019
* If null, default language will be used
* @param int|false|null $idLang
* Set this parameter if you want the currency in a specific language.
* If null, default language will be used
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* If null, default language will be used
* If null or false, default language will be used

Does it make sense ?

@@ -179,7 +179,7 @@ public function __construct($id = null, $idLang = null, $idShop = null)
if ($this->iso_code) {
// As the CLDR used to return a string even if in multi shop / lang,
// We force only one string to be returned
if (null === $idLang) {
if (empty($idLang)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to improve this constructor phpdoc ?

@matks matks added the Waiting for QA Status: action required, waiting for test feedback label Apr 24, 2019
@matks matks added this to the 1.7.6.0 milestone Apr 24, 2019
@marionf marionf added QA ✔️ Status: check done, code approved and removed Waiting for QA Status: action required, waiting for test feedback labels Apr 24, 2019
@Quetzacoalt91 Quetzacoalt91 merged commit 2b68315 into PrestaShop:1.7.6.x Apr 24, 2019
@eternoendless eternoendless changed the title fix currency display on not existing language Fix currency display on not existing language May 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.7.6.x Branch Bug Type: Bug QA ✔️ Status: check done, code approved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants