fix: cancel button not working when comming from admin token list

This commit is contained in:
yannis
2025-07-01 16:52:26 +02:00
parent f7f7532665
commit ef96314026
2 changed files with 6 additions and 2 deletions

View File

@@ -305,7 +305,7 @@ if (GETPOSTINT('nomassaction') || in_array($massaction, array('presend', 'predel
$massactionbutton = $form->selectMassAction('', $arrayofmassactions);
$morehtmlright = '';
$tmpurlforbutton = DOL_URL_ROOT.'/user/api_token/card.php?action=create';
$tmpurlforbutton = DOL_URL_ROOT.'/user/api_token/card.php?action=create&backtopage='.urlencode(DOL_URL_ROOT.'/api/admin/token_list.php');
$morehtmlright .= dolGetButtonTitle($langs->trans('New'), '', 'fa fa-plus-circle', $tmpurlforbutton);
print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'?id=">'."\n";