2
0
forked from Wavyzz/dolibarr

Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 20.0

This commit is contained in:
Laurent Destailleur
2024-10-03 17:25:10 +02:00
2 changed files with 3 additions and 3 deletions

View File

@@ -12309,9 +12309,9 @@ function dolGetButtonAction($label, $text = '', $actionType = 'default', $url =
$text = $button['text'] ?? ''; $text = $button['text'] ?? '';
$actionType = $button['actionType'] ?? ''; $actionType = $button['actionType'] ?? '';
$tmpUrl = DOL_URL_ROOT.$button['url'].(empty($params['backtopage']) ? '' : '&backtopage='.urlencode($params['backtopage'])); $tmpUrl = DOL_URL_ROOT.$button['url'].(empty($params['backtopage']) ? '' : '&backtopage='.urlencode($params['backtopage']));
$id = $button['$id'] ?? ''; $id = $button['id'] ?? '';
$userRight = $button['perm'] ?? 1; $userRight = $button['perm'] ?? 1;
$params = $button['$params'] ?? []; $params = $button['params'] ?? [];
$out .= dolGetButtonAction($label, $text, $actionType, $tmpUrl, $id, $userRight, $params); $out .= dolGetButtonAction($label, $text, $actionType, $tmpUrl, $id, $userRight, $params);
} }

View File

@@ -191,7 +191,7 @@ class InterfaceTicketEmail extends DolibarrTriggers
} }
// Send email to customer // Send email to customer
if (!getDolGlobalString('TICKET_DISABLE_CUSTOMER_MAILS') && empty($object->context['disableticketemail']) && $object->notify_tiers_at_create) { if (!getDolGlobalInt('TICKET_DISABLE_CUSTOMER_MAILS') && empty($object->context['disableticketemail']) && $object->notify_tiers_at_create) {
$sendto = ''; $sendto = '';
// if contact selected send to email's contact else send to email's thirdparty // if contact selected send to email's contact else send to email's thirdparty