Skip to content

Conversation

@madonzy
Copy link

@madonzy madonzy commented Nov 16, 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
@madonzy
Copy link
Author

madonzy commented Nov 16, 2017

That is the same as #12284, but for Magento 2.2

@okorshenko okorshenko self-assigned this Nov 16, 2017
@okorshenko okorshenko added this to the November 2017 milestone Nov 16, 2017
@magento-team magento-team merged commit addda42 into magento:2.2-develop Nov 16, 2017
magento-team pushed a commit that referenced this pull request Nov 16, 2017
[EngCom] Public Pull Requests - 2.2-develop
 - MAGETWO-83959: Issue: 3596. Resolve Notice with undefined index 'value' #12296
 - MAGETWO-83957: #12083: Cannot import zero (0) value into custom attribute #12283
 - MAGETWO-83868: 11941: Invoice for products that use qty decimal rounds down to whole number. #11997
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.

3 participants