Commit 711b166c authored by GiorgosK's avatar GiorgosK

Correct auto_redirect logic

parent 3281c547
......@@ -76,7 +76,7 @@ class WinbankPaymentRedirectForm extends BasePaymentOffsiteForm {
];
$form = $this->buildRedirectForm($form, $form_state, $config['paycenter_url'], $data, 'post');
if ($config['auto_redirect']) {
if ($config['auto_redirect'] === false) {
unset($form['#attached']['library']);
}
return $form;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment