2
0
forked from Wavyzz/dolibarr

only if no token

This commit is contained in:
Francis Appels
2021-04-30 11:15:01 +02:00
parent 05a96b3ee2
commit 773b16928d

View File

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