1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Fix for payment gateway failing validation

This commit is contained in:
Hillel Coren 2016-07-21 20:09:33 +03:00
parent fa7203a90d
commit 8c15e2a735

View File

@ -202,7 +202,7 @@ class AccountGatewayController extends BaseController
$validator = Validator::make(Input::all(), $rules);
if ($validator->fails()) {
return Redirect::to('gateways/create')
return Redirect::to('gateways/create?other_providers=' . ($gatewayId == GATEWAY_WEPAY ? 'false' : 'true'))
->withErrors($validator)
->withInput();
} else {