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

Fixing #PSCSX-5799 => I18n field output when no language is specified in URL #3025

Merged
merged 1 commit into from Jun 23, 2015

Conversation

@gleseur
Copy link
Contributor

commented May 15, 2015

API displays
language id="Array" xlink:href="http://127.0.0.1/api/languages/Array"/
instead of actual value when no language is specified as parameter.

One can see in https://github.com/PrestaShop/PrestaShop/blob/1.6/classes/webservice/WebserviceOutputXML.php#L93-L106 that languages is indeed supposed to be an array of ints and not an array with an array inside.

Bug was introduced in 836105f#diff-6f9aef6c863f595ab49368d3ff7608efL479

Fixing I18n field output when no language is specified in URL. _avail…
…able_languages must be an array and not an array of an array

@gleseur gleseur changed the title Fixing I18n field output when no language is specified in URL Fixing #PSCSX-5799 => I18n field output when no language is specified in URL Jun 4, 2015

jnadaud pushed a commit that referenced this pull request Jun 23, 2015
Jérôme Nadaud
Merge pull request #3025 from gleseur/1.6
Fixing #PSCSX-5799 => I18n field output when no language is specified in URL

@jnadaud jnadaud merged commit 3bc56af into PrestaShop:1.6 Jun 23, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@jnadaud

This comment has been minimized.

Copy link
Contributor

commented Jun 23, 2015

Hi,

Thank you for your contribution.

Best regards.

@jnadaud jnadaud added the Bug label Jun 23, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.