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

Patch to allow multiple filter_url_params to function #9723

Merged
merged 1 commit into from
Jun 1, 2017

Conversation

southerncomputer
Copy link
Contributor

@southerncomputer southerncomputer commented May 21, 2017

Multiple filter_url_params in UI_component will fail due to missing / separator in sprintf function.

Otherwise the 2nd url parameter will be compiled into the value of the first parameter such as SKU/12345pr/
when in fact the second variable passed was PR/PULLREQUEST/ as part of SKU/12345/pr/PULLREQUEST!

Only happens when you pass multiple variables to in ui_component such as

`

            <item name="config" xsi:type="array">
         <item name="update_url" xsi:type="url"   path="mui/index/render"/>
    <item name="filter_url_params" xsi:type="array">
      <item name="customer_number" xsi:type="string">*</item>
     <item name="sku" xsi:type="string">*</item>
    </item>

            </item>
        </argument>

`

Description

Patches sprintf to add a separator between first and second filter_url_param passed values via get call.

Fixed Issues (if relevant)

  1. N/A
  2. ...

Manual testing scenarios

  1. Pass a 2nd variable to a filter_url_param ui_component
  2. watch the search fail miserably when the 2nd variable is present.

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)

Multiple filter_url_params in UI_component will fail due to missing / separator in sprintf function.

Otherwise the 2nd url parameter will be compiled into the value of the first parameter such as SKU/12345pr/
when in fact the second variable passed was PR/PULLREQUEST/ as part of SKU/12345/pr/PULLREQUEST!

Only happens when you pass multiple variables to in ui_component such as 
`           <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
             <item name="update_url" xsi:type="url"   path="mui/index/render"/>
        <item name="filter_url_params" xsi:type="array">
          <item name="customer_number" xsi:type="string">*</item>
         <item name="sku" xsi:type="string">*</item>
        </item>

                </item>
            </argument>
  `
@magento-cicd2
Copy link
Contributor

magento-cicd2 commented May 21, 2017

CLA assistant check
All committers have signed the CLA.

@ishakhsuvarov ishakhsuvarov self-assigned this May 30, 2017
@ishakhsuvarov ishakhsuvarov added this to the May 2017 milestone May 30, 2017
@okorshenko okorshenko modified the milestones: May 2017, June 2017 Jun 1, 2017
@magento-team magento-team merged commit ca543eb into magento:develop Jun 1, 2017
magento-team pushed a commit that referenced this pull request Jun 1, 2017
[EngCom] Public Pull Requests
 - MAGETWO-69573: Adding logo in media folder #9797
 - MAGETWO-69555: Allow for referenceBlock to include template argument #9772
 - MAGETWO-69540: Fix for #5897: getIdentities relies on uninitialized collection #9777
 - MAGETWO-69533: [BUGFIX][6244] Fix Issue with code label display in cart checkout. #9721
 - MAGETWO-69499: Update select.js #9475
 - MAGETWO-69451: Replace Zend_Json in the configurable product block test #9753
 - MAGETWO-69373: Customer with unique attribute can't be saved #7844 #9712
 - MAGETWO-69369: Replace the direct usage of Zend_Json with a call to the Json Help class #9344
 - MAGETWO-69085: Do not hardcode product link types #9600
 - MAGETWO-69554: Patch to allow multiple filter_url_params to function #9723
@magento-team
Copy link
Contributor

@southerncomputer thank you for your contribution

@southerncomputer southerncomputer deleted the patch-1 branch June 2, 2017 14:10
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.

5 participants