Fix error after failed to add gateway
This commit is contained in:
parent
1e70afae3f
commit
204cd7ad17
1 changed files with 2 additions and 1 deletions
|
|
@ -209,7 +209,8 @@ class AccountGatewayController extends BaseController
|
|||
$validator = Validator::make(Input::all(), $rules);
|
||||
|
||||
if ($validator->fails()) {
|
||||
return Redirect::to('gateways/create?other_providers=' . ($gatewayId == GATEWAY_WEPAY ? 'false' : 'true'))
|
||||
$url = $accountGatewayPublicId ? "/gateways/{$accountGatewayPublicId}/edit" : 'gateways/create?other_providers=' . ($gatewayId == GATEWAY_WEPAY ? 'false' : 'true');
|
||||
return Redirect::to($url)
|
||||
->withErrors($validator)
|
||||
->withInput();
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue