getEditForm returns FormBuilder and csrfToken should be added by www_edit

This commit is contained in:
Doug Bell 2011-05-05 19:43:32 -05:00
parent f33f4db65b
commit 2e720d6899
2 changed files with 6 additions and 9 deletions

View file

@ -418,7 +418,8 @@ sub www_edit {
return $session->privilege->insufficient() unless $admin->canManage;
my $form = $self->getEditForm;
$form->submit;
$form->addField( 'csrfToken', name => 'csrfToken' );
$form->addField( "submit", name => "submit" );
my $processUrl = $self->session->url->getSiteURL.'/?shop=pay&method=do&do=processTransaction&paymentGatewayId='.$self->getId;
my $output = '<br />';