Fix btn confirm url
This commit is contained in:
parent
786816dd44
commit
9d31d6448c
@ -10043,9 +10043,11 @@ function dolGetButtonAction($label, $html = '', $actionType = 'default', $url =
|
|||||||
// Js Confirm button
|
// Js Confirm button
|
||||||
if ($userRight && !empty($params['confirm'])) {
|
if ($userRight && !empty($params['confirm'])) {
|
||||||
if (!is_array($params['confirm'])) {
|
if (!is_array($params['confirm'])) {
|
||||||
$params['confirm'] = array(
|
$params['confirm'] = array();
|
||||||
'url' => $url . (strpos($url, '?') > 0 ? '&' : '?') . 'confirm=yes'
|
}
|
||||||
);
|
|
||||||
|
if (empty($params['confirm'])) {
|
||||||
|
$params['confirm']['url'] = $url . (strpos($url, '?') > 0 ? '&' : '?') . 'confirm=yes';
|
||||||
}
|
}
|
||||||
|
|
||||||
// for js desabled compatibility set $url as call to confirm action and $params['confirm']['url'] to confirmed action
|
// for js desabled compatibility set $url as call to confirm action and $params['confirm']['url'] to confirmed action
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user