Awight has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/341592 )
Change subject: [WIP] Form did not validate if manual errors are present ...................................................................... [WIP] Form did not validate if manual errors are present TODO: I'd like to understand when and why this changed, and whether we ever do care only about validation errors. Bug: T98447 Change-Id: I22d7ee350820db8a1fb37124a0690b0b3d397784 --- M gateway_common/GatewayPage.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface refs/changes/92/341592/1 diff --git a/gateway_common/GatewayPage.php b/gateway_common/GatewayPage.php index 491add7..8d32960 100644 --- a/gateway_common/GatewayPage.php +++ b/gateway_common/GatewayPage.php @@ -348,7 +348,7 @@ if ( $this->isProcessImmediate() ) { // Check form for errors // FIXME: Should this be rolled into adapter.doPayment? - $form_errors = $this->validateForm(); + $form_errors = $this->validateForm() || $this->adapter->getManualErrors(); // If there were errors, redisplay form, otherwise proceed to next step if ( $form_errors ) { -- To view, visit https://gerrit.wikimedia.org/r/341592 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I22d7ee350820db8a1fb37124a0690b0b3d397784 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/DonationInterface Gerrit-Branch: master Gerrit-Owner: Awight <awi...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits