Ejegg has uploaded a new change for review.
https://gerrit.wikimedia.org/r/279652
Change subject: Fix AstroPay submethod unstaging
......................................................................
Fix AstroPay submethod unstaging
...grumble grumble needle, haystack grumble grumble...
Change-Id: I6a22a1fd141cdb46f493410fedd234eba2361983
---
M astropay_gateway/AstroPayMethodCodec.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface
refs/changes/52/279652/1
diff --git a/astropay_gateway/AstroPayMethodCodec.php
b/astropay_gateway/AstroPayMethodCodec.php
index e77362d..dfa455c 100644
--- a/astropay_gateway/AstroPayMethodCodec.php
+++ b/astropay_gateway/AstroPayMethodCodec.php
@@ -12,7 +12,7 @@
}
$filter = function( $submethod ) use ( $method, $bank ) {
$groups = (array) $submethod['group'];
- return in_array( $groups, $method ) &&
$submethod['bank_code'] === $bank;
+ return in_array( $method, $groups ) &&
$submethod['bank_code'] === $bank;
};
$candidates = array_filter( $adapter->getPaymentSubmethods(),
$filter );
--
To view, visit https://gerrit.wikimedia.org/r/279652
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6a22a1fd141cdb46f493410fedd234eba2361983
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Ejegg <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits