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

Issue: 3596. Resolve Notice with undefined index 'value' #12284

Conversation

madonzy
Copy link

@madonzy madonzy commented Nov 15, 2017

Fix for issue: #3596

Description

If you have a custom offline payment method it automatically falls in exception group used while fetching all payment methods this cause that payment method don't have value key in the definition and as the result - undefined index on order view page in admin panel. My fix adds key value as null and it fixes the notice.

Fixed Issues

  1. Notice: Undefined index: value in /app/code/Magento/Backend/Block/Widget/Grid/Column/Filter/Select.php on line 72 #3596: Notice: Undefined index: value in /app/code/Magento/Backend/Block/Widget/Grid/Column/Filter/Select.php on line 72

Manual testing scenarios

  1. Add custom offline payment method
  2. Create an order with instantly payable payment method (like PayPal, PayPal, ... not the bank transfer)
  3. Got to order view in admin panel and you should PHP notice.

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)

…w order with instance payable method selected if custom offline payment method is defined in system
@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Nov 15, 2017

CLA assistant check
All committers have signed the CLA.

@okorshenko
Copy link
Contributor

Hi @madonzy
Thank you for your contribution. We can not accept this PR to 2.1 until it is fixed in 2.2
Could you please create PR to 2.2 so that we can accept PR to 2.1
Thank you

@madonzy
Copy link
Author

madonzy commented Nov 16, 2017

@okorshenko yes, sure here it is: #12296

@madonzy
Copy link
Author

madonzy commented Nov 17, 2017

@okorshenko, how can I become visible in contributors list? Maybe you can add me to magento2 group?

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.

4 participants