Merge pull request #17441 from fappels/13_tokenonactiondelete

FIX missing token on dolGetButtonAction for action delete
This commit is contained in:
Laurent Destailleur 2021-05-04 00:21:55 +02:00 committed by GitHub
commit bb64c330f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8731,6 +8731,7 @@ function dolGetButtonAction($label, $html = '', $actionType = 'default', $url =
$class = 'butAction';
if ($actionType == 'danger' || $actionType == 'delete') {
$class = 'butActionDelete';
if (strpos($url, 'token=') === false) $url .= '&token='.newToken();
}
$attr = array(