Merge pull request #17441 from fappels/13_tokenonactiondelete
FIX missing token on dolGetButtonAction for action delete
This commit is contained in:
commit
bb64c330f6
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user