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

[2.2-develop] Update Gallery Template to handle boolean config Variables #15020

Merged
merged 1 commit into from
May 9, 2018
Merged

Conversation

gwharton
Copy link
Contributor

@gwharton gwharton commented May 5, 2018

Description

Due to changes implemented in the resolution to #12285, boolean configuration variables are now properly typed booleans, instead of the strings "true" and "false".

Without this fix applied, config vals that were true were being output in the gallery template javascript as : 1 and values that were false were being output as :

This causes javascript errors for any item that is set to false.

Fixed Issues (if relevant)

  1. [2.2.4] Gallery theme variables being ignored #15009: 2.2.4 Gallery theme variables being ignored

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

Due to changes implemented in resolution to #12285, boolean configuration variables are now booleans, instead of the strings "true" and "false".

Previous to this fix, values that were true were being output as var : 1 and values that were false were being output as var :

This output for the false value is invalid.
@VladimirZaets
Copy link
Contributor

VladimirZaets commented May 5, 2018

Hi, @gwharton, I took your PR into processing, thank you for collaboration.

magento-engcom-team added a commit that referenced this pull request May 9, 2018
…y Template to handle boolean config Variables #15022

 - Merge Pull Request #15022 from gwharton/magento2:2.3-develop-15020
 - Merged commits:
   1. 163d4cc
magento-engcom-team pushed a commit that referenced this pull request May 9, 2018
…y Template to handle boolean config Variables #15022
magento-engcom-team added a commit that referenced this pull request May 9, 2018
Accepted Public Pull Requests:
 - #15051: [Forwardport] Add statement to 'beforeSave' method to allow app:config:import (by @rogyar)
 - #15034: [Forwardport] fix: set message-success in setup if we already have the latest version (by @DanielRuf)
 - #15022: [2.3-develop] [ForwardPort] Port of #15020 Update Gallery Template to handle boolean config Variables (by @gwharton)
 - #15021: [2.3-develop] [ForwardPort] Port of #12285 The option <var name="allowfullscreen">false</var> for mobile device don't work in product view page gallery (by @gwharton)
 - #15081: [Forwardport] use "Module_Name::template/path" format instead of using template/path i� (by @adrian-martinez-interactiv4)
 - #15078: [Forwardport] Removed extra close tag (by @adrian-martinez-interactiv4)
 - #15075: [Forwardport] Removed extra spaces from language file (by @adrian-martinez-interactiv4)
 - #15073: [Forwardport] Changed return type of addToCartPostParams to array (by @adrian-martinez-interactiv4)
 - #15069: [Forwardport] Code cleanup, add more visibility (by @adrian-martinez-interactiv4)
 - #15083: [Forwardport] Fixed typos in .less files (by @adrian-martinez-interactiv4)
 - #15050: [Forwardport] Duplicate Order Confirmation Emails for PayPal Express checkout (by @rogyar)


Fixed GitHub Issues:
 - #12285: The option <var name="allowfullscreen">false</var> for mobile device don't work in product view page gallery (reported by @novakivskiy) has been fixed in #15022 by @gwharton in 2.3-develop branch
   Related commits:
     1. 163d4cc

 - #15009: [2.2.4] Gallery theme variables being ignored (reported by @gwharton) has been fixed in #15022 by @gwharton in 2.3-develop branch
   Related commits:
     1. 163d4cc

 - #12285: The option <var name="allowfullscreen">false</var> for mobile device don't work in product view page gallery (reported by @novakivskiy) has been fixed in #15021 by @gwharton in 2.3-develop branch
   Related commits:
     1. 435b165
     2. 4113f26
     3. c0b9e8f
     4. 05b1512
     5. 2701a4f
@magento-engcom-team magento-engcom-team merged commit 8ef039e into magento:2.2-develop May 9, 2018
magento-engcom-team pushed a commit that referenced this pull request May 9, 2018
@magento-engcom-team
Copy link
Contributor

Hi @gwharton. Thank you for your contribution.
Changes from your Pull Request will be available with the upcoming 2.2.5 release.

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.

5 participants