File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -372,6 +372,7 @@ sub getEditForm {
372
372
373
373
my $form = WebGUI::FormBuilder-> new($self -> session);
374
374
$form -> addField( " submit" , name => " send" );
375
+ $form -> addField( ' csrfToken' , name => ' csrfToken' );
375
376
376
377
$self -> getDoFormTags(' editSave' , $form );
377
378
$form -> addField( " hidden" ,
@@ -657,7 +658,6 @@ sub www_edit {
657
658
return $session -> privilege-> insufficient() unless $session -> user-> isAdmin;
658
659
659
660
my $form = $self -> getEditForm;
660
- $form -> addField( ' csrfToken' , name => ' csrfToken' );
661
661
$form -> addField( " submit" , name => " send" );
662
662
663
663
return ' <h1>' . $i18n -> get(' payment methods' ) . ' </h1>' . $form -> toHtml;
Original file line number Diff line number Diff line change @@ -577,7 +577,7 @@ sub www_edit {
577
577
return $session -> privilege-> insufficient() unless $admin -> canManage;
578
578
579
579
my $form = $self -> getEditForm;
580
- $form -> submit;
580
+ $form -> addField( " submit" , name => " send " ) ;
581
581
582
582
# #Form to let the user log into their ITransact account from here.
583
583
my $terminal = WebGUI::HTMLForm-> new($session , action => " https://secure.paymentclearing.com/cgi-bin/rc/sess.cgi" , extras => ' target="_blank"' );
@@ -596,7 +596,7 @@ sub www_edit {
596
596
.' <b>https://' .$session -> config-> get(" sitename" )-> [0]
597
597
.' /?shop=pay;method=do;do=processRecurringTransactionPostback;paymentGatewayId=' .$self -> getId.' </b>' ;
598
598
599
- return $admin -> getAdminConsole-> render($form -> print .$output , $i18n -> get(' payment methods' ,' PayDriver' ));
599
+ return $admin -> getAdminConsole-> render($form -> toHtml .$output , $i18n -> get(' payment methods' ,' PayDriver' ));
600
600
}
601
601
602
602
# -------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -424,7 +424,7 @@ sub www_edit {
424
424
my $output = ' <br />' ;
425
425
$output .= sprintf $i18n -> get(' ogone setup' ), $processUrl , $processUrl ;
426
426
427
- return $admin -> getAdminConsole-> render($form -> print .$output , $i18n -> get(' payment methods' ,' PayDriver' ));
427
+ return $admin -> getAdminConsole-> render($form -> toHtml .$output , $i18n -> get(' payment methods' ,' PayDriver' ));
428
428
}
429
429
430
430
# -------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments