Merge branch 'support/3.2' into develop

This commit is contained in:
Stephen Abello
2024-11-04 14:40:52 +01:00
18 changed files with 74 additions and 48 deletions

View File

@@ -154,7 +154,7 @@ class EMail implements iEMail
*/
public function SetInReplyTo(string $sMessageId)
{
$this->AddToHeader('In-Reply-To', $sMessageId);
$this->oMailer->SetInReplyTo($sMessageId);
}
public function SetBody($sBody, $sMimeType = 'text/html', $sCustomStyles = null)

View File

@@ -75,14 +75,16 @@ Dict::Add('CS CZ', 'Czech', 'Čeština', [
'Class:DeliveryModel/Attribute:description' => 'Popis',
'Class:DeliveryModel/Attribute:description+' => '',
'Class:DeliveryModel/Attribute:name' => 'Název',
'Class:DeliveryModel/Attribute:name+' => '',
'Class:DeliveryModel/Attribute:name+' => 'Don\'t forget to add teams to this delivery model~~',
'Class:DeliveryModel/Attribute:org_id' => 'Organizace',
'Class:DeliveryModel/Attribute:org_id+' => '',
'Class:DeliveryModel/Attribute:org_id+' => 'Usually the organization that provides the services~~',
'Class:DeliveryModel/Attribute:organization_name' => 'Název organizace',
'Class:DeliveryModel/Attribute:organization_name+' => '',
'Class:Organization/Attribute:deliverymodel_id' => 'Model poskytování služeb',
'Class:Organization/Attribute:deliverymodel_id+' => '',
'Class:Organization/Attribute:deliverymodel_name' => 'Název modelu poskytování služeb',
'Class:Organization/Attribute:deliverymodel_name+' => 'This is required for Tickets handling.
The delivery model specifies the teams to which tickets can be assigned.~~',
'Class:ProviderContract' => 'Smlouva s poskytovatelem',
'Class:ProviderContract+' => '',
'Class:ProviderContract/Attribute:contracttype_id' => 'Typ smlouvy',

View File

@@ -74,14 +74,16 @@ Dict::Add('DA DA', 'Danish', 'Dansk', [
'Class:DeliveryModel/Attribute:description' => 'Beskrivelse',
'Class:DeliveryModel/Attribute:description+' => '',
'Class:DeliveryModel/Attribute:name' => 'Navn',
'Class:DeliveryModel/Attribute:name+' => '',
'Class:DeliveryModel/Attribute:name+' => 'Don\'t forget to add teams to this delivery model~~',
'Class:DeliveryModel/Attribute:org_id' => 'Organisation',
'Class:DeliveryModel/Attribute:org_id+' => '',
'Class:DeliveryModel/Attribute:org_id+' => 'Usually the organization that provides the services~~',
'Class:DeliveryModel/Attribute:organization_name' => 'Organisations navn',
'Class:DeliveryModel/Attribute:organization_name+' => '',
'Class:Organization/Attribute:deliverymodel_id' => 'Leverings model',
'Class:Organization/Attribute:deliverymodel_id+' => '~~',
'Class:Organization/Attribute:deliverymodel_name' => 'Leverings model navn',
'Class:Organization/Attribute:deliverymodel_name+' => 'This is required for Tickets handling.
The delivery model specifies the teams to which tickets can be assigned.~~',
'Class:ProviderContract' => 'Leverandør kontrakt',
'Class:ProviderContract+' => '',
'Class:ProviderContract/Attribute:contracttype_id' => 'Kontrakt type',

View File

@@ -74,14 +74,16 @@ Dict::Add('DE DE', 'German', 'Deutsch', [
'Class:DeliveryModel/Attribute:description' => 'Beschreibung',
'Class:DeliveryModel/Attribute:description+' => '',
'Class:DeliveryModel/Attribute:name' => 'Name',
'Class:DeliveryModel/Attribute:name+' => '',
'Class:DeliveryModel/Attribute:name+' => 'Don\'t forget to add teams to this delivery model~~',
'Class:DeliveryModel/Attribute:org_id' => 'Organisation',
'Class:DeliveryModel/Attribute:org_id+' => '',
'Class:DeliveryModel/Attribute:org_id+' => 'Usually the organization that provides the services~~',
'Class:DeliveryModel/Attribute:organization_name' => 'Organizations-Name',
'Class:DeliveryModel/Attribute:organization_name+' => '',
'Class:Organization/Attribute:deliverymodel_id' => 'Delivery-Modell',
'Class:Organization/Attribute:deliverymodel_id+' => '',
'Class:Organization/Attribute:deliverymodel_name' => 'Delivery-Modell-Name',
'Class:Organization/Attribute:deliverymodel_name+' => 'This is required for Tickets handling.
The delivery model specifies the teams to which tickets can be assigned.~~',
'Class:ProviderContract' => 'Provider-Vertrag',
'Class:ProviderContract+' => '',
'Class:ProviderContract/Attribute:contracttype_id' => 'Vertragstyp',

View File

@@ -73,7 +73,8 @@ Dict::Add('EN US', 'English', 'English', array(
Dict::Add('EN US', 'English', 'English', array(
'Class:Organization/Attribute:deliverymodel_id' => 'Delivery model',
'Class:Organization/Attribute:deliverymodel_id+' => '',
'Class:Organization/Attribute:deliverymodel_id+' => 'This is required for Tickets handling.
The delivery model specifies the teams to which tickets can be assigned.',
'Class:Organization/Attribute:deliverymodel_name' => 'Delivery model name',
));
@@ -477,9 +478,9 @@ Dict::Add('EN US', 'English', 'English', array(
'Class:DeliveryModel' => 'Delivery Model',
'Class:DeliveryModel+' => '',
'Class:DeliveryModel/Attribute:name' => 'Name',
'Class:DeliveryModel/Attribute:name+' => '',
'Class:DeliveryModel/Attribute:name+' => 'Don\'t forget to add teams to this delivery model',
'Class:DeliveryModel/Attribute:org_id' => 'Organization',
'Class:DeliveryModel/Attribute:org_id+' => '',
'Class:DeliveryModel/Attribute:org_id+' => 'Usually the organization that provides the services',
'Class:DeliveryModel/Attribute:organization_name' => 'Organization Name',
'Class:DeliveryModel/Attribute:organization_name+' => 'Common name',
'Class:DeliveryModel/Attribute:description' => 'Description',

View File

@@ -74,14 +74,16 @@ Dict::Add('ES CR', 'Spanish', 'Español, Castellano', [
'Class:DeliveryModel/Attribute:description' => 'Descripción',
'Class:DeliveryModel/Attribute:description+' => 'Descripción',
'Class:DeliveryModel/Attribute:name' => 'Nombre',
'Class:DeliveryModel/Attribute:name+' => 'Nombre del Modelo de Entrega',
'Class:DeliveryModel/Attribute:name+' => 'Don\'t forget to add teams to this delivery model~~',
'Class:DeliveryModel/Attribute:org_id' => 'Organización',
'Class:DeliveryModel/Attribute:org_id+' => 'Organización',
'Class:DeliveryModel/Attribute:org_id+' => 'Usually the organization that provides the services~~',
'Class:DeliveryModel/Attribute:organization_name' => 'Organización',
'Class:DeliveryModel/Attribute:organization_name+' => 'Organización',
'Class:Organization/Attribute:deliverymodel_id' => 'Modelo de Entrega',
'Class:Organization/Attribute:deliverymodel_id+' => 'Modelo de Entrega',
'Class:Organization/Attribute:deliverymodel_name' => 'Nombre del Modelo de Entrega',
'Class:Organization/Attribute:deliverymodel_name+' => 'This is required for Tickets handling.
The delivery model specifies the teams to which tickets can be assigned.~~',
'Class:ProviderContract' => 'Contrato con Proveedor',
'Class:ProviderContract+' => 'Contrato con Proveedor',
'Class:ProviderContract/Attribute:contracttype_id' => 'Tipo de Contrato',

View File

@@ -78,14 +78,14 @@ Dict::Add('FR FR', 'French', 'Français', [
'Class:DeliveryModel/Attribute:customers_list/UI:Links:Remove:Modal:Title' => 'Retirer ce %4$s de son %1$s',
'Class:DeliveryModel/Attribute:description' => 'Description',
'Class:DeliveryModel/Attribute:description+' => '',
'Class:DeliveryModel/Attribute:name' => 'Nom Modèle de support',
'Class:DeliveryModel/Attribute:name+' => '',
'Class:DeliveryModel/Attribute:name' => 'Nom du modèle de support',
'Class:DeliveryModel/Attribute:name+' => 'Attachez à ce modèle les équipes qui géreront les tickets',
'Class:DeliveryModel/Attribute:org_id' => 'Organisation',
'Class:DeliveryModel/Attribute:org_id+' => '',
'Class:DeliveryModel/Attribute:org_id+' => 'Généralement le fournisseur des services',
'Class:DeliveryModel/Attribute:organization_name' => 'Nom organisation',
'Class:DeliveryModel/Attribute:organization_name+' => '',
'Class:Organization/Attribute:deliverymodel_id' => 'Modèle de support',
'Class:Organization/Attribute:deliverymodel_id+' => '',
'Class:Organization/Attribute:deliverymodel_id+' => 'C\'est indispensable pour définir les équipes auxquelles les tickets pourront être assignés',
'Class:Organization/Attribute:deliverymodel_name' => 'Nom modèle de support',
'Class:ProviderContract' => 'Contrat fournisseur',
'Class:ProviderContract+' => '',

View File

@@ -73,14 +73,16 @@ Dict::Add('HU HU', 'Hungarian', 'Magyar', [
'Class:DeliveryModel/Attribute:description' => 'Leírás',
'Class:DeliveryModel/Attribute:description+' => '~~',
'Class:DeliveryModel/Attribute:name' => 'Teljesítési modell név',
'Class:DeliveryModel/Attribute:name+' => '~~',
'Class:DeliveryModel/Attribute:name+' => 'Don\'t forget to add teams to this delivery model~~',
'Class:DeliveryModel/Attribute:org_id' => 'Szervezeti egység',
'Class:DeliveryModel/Attribute:org_id+' => '~~',
'Class:DeliveryModel/Attribute:org_id+' => 'Usually the organization that provides the services~~',
'Class:DeliveryModel/Attribute:organization_name' => 'Szervezeti egység név',
'Class:DeliveryModel/Attribute:organization_name+' => 'Általános név',
'Class:Organization/Attribute:deliverymodel_id' => 'Teljesítési modell',
'Class:Organization/Attribute:deliverymodel_id+' => 'Ki kinek szolgáltat',
'Class:Organization/Attribute:deliverymodel_name' => 'Teljesítési modell név',
'Class:Organization/Attribute:deliverymodel_name+' => 'This is required for Tickets handling.
The delivery model specifies the teams to which tickets can be assigned.~~',
'Class:ProviderContract' => 'Szolgáltatói szerződés',
'Class:ProviderContract+' => '',
'Class:ProviderContract/Attribute:contracttype_id' => 'Szerződéstípus',

View File

@@ -73,13 +73,14 @@ Dict::Add('IT IT', 'Italian', 'Italiano', [
'Class:DeliveryModel/Attribute:description' => 'Descrizione',
'Class:DeliveryModel/Attribute:description+' => '~~',
'Class:DeliveryModel/Attribute:name' => 'Nome',
'Class:DeliveryModel/Attribute:name+' => '~~',
'Class:DeliveryModel/Attribute:name+' => 'Don\'t forget to add teams to this delivery model~~',
'Class:DeliveryModel/Attribute:org_id' => 'Organizzazione',
'Class:DeliveryModel/Attribute:org_id+' => '~~',
'Class:DeliveryModel/Attribute:org_id+' => 'Usually the organization that provides the services~~',
'Class:DeliveryModel/Attribute:organization_name' => 'Nome dell\'Organizzazione',
'Class:DeliveryModel/Attribute:organization_name+' => 'Common name~~',
'Class:Organization/Attribute:deliverymodel_id' => 'Modello di Consegna',
'Class:Organization/Attribute:deliverymodel_id+' => '~~',
'Class:Organization/Attribute:deliverymodel_id+' => 'This is required for Tickets handling.
The delivery model specifies the teams to which tickets can be assigned.~~',
'Class:Organization/Attribute:deliverymodel_name' => 'Nome del Modello di Consegna',
'Class:ProviderContract' => 'Contratto con Provider',
'Class:ProviderContract+' => '~~',

View File

@@ -73,13 +73,14 @@ Dict::Add('JA JP', 'Japanese', '日本語', [
'Class:DeliveryModel/Attribute:description' => '説明',
'Class:DeliveryModel/Attribute:description+' => '',
'Class:DeliveryModel/Attribute:name' => '名前',
'Class:DeliveryModel/Attribute:name+' => '',
'Class:DeliveryModel/Attribute:name+' => 'Don\'t forget to add teams to this delivery model~~',
'Class:DeliveryModel/Attribute:org_id' => '組織',
'Class:DeliveryModel/Attribute:org_id+' => '',
'Class:DeliveryModel/Attribute:org_id+' => 'Usually the organization that provides the services~~',
'Class:DeliveryModel/Attribute:organization_name' => '組織名',
'Class:DeliveryModel/Attribute:organization_name+' => '共通名',
'Class:Organization/Attribute:deliverymodel_id' => '提供モデル',
'Class:Organization/Attribute:deliverymodel_id+' => '',
'Class:Organization/Attribute:deliverymodel_id+' => 'This is required for Tickets handling.
The delivery model specifies the teams to which tickets can be assigned.~~',
'Class:Organization/Attribute:deliverymodel_name' => '提供モデル名',
'Class:ProviderContract' => 'プロバイダー契約',
'Class:ProviderContract+' => '',

View File

@@ -76,13 +76,14 @@ Dict::Add('NL NL', 'Dutch', 'Nederlands', [
'Class:DeliveryModel/Attribute:description' => 'Omschrijving',
'Class:DeliveryModel/Attribute:description+' => '',
'Class:DeliveryModel/Attribute:name' => 'Naam',
'Class:DeliveryModel/Attribute:name+' => '',
'Class:DeliveryModel/Attribute:name+' => 'Don\'t forget to add teams to this delivery model~~',
'Class:DeliveryModel/Attribute:org_id' => 'Organisatie',
'Class:DeliveryModel/Attribute:org_id+' => '',
'Class:DeliveryModel/Attribute:org_id+' => 'Usually the organization that provides the services~~',
'Class:DeliveryModel/Attribute:organization_name' => 'Naam organisatie',
'Class:DeliveryModel/Attribute:organization_name+' => 'Naam van de organisatie',
'Class:Organization/Attribute:deliverymodel_id' => 'Leveringsmodel',
'Class:Organization/Attribute:deliverymodel_id+' => '',
'Class:Organization/Attribute:deliverymodel_id+' => 'This is required for Tickets handling.
The delivery model specifies the teams to which tickets can be assigned.~~',
'Class:Organization/Attribute:deliverymodel_name' => 'Naam leveringsmodel',
'Class:ProviderContract' => 'Leverancierscontract',
'Class:ProviderContract+' => '',

View File

@@ -73,13 +73,14 @@ Dict::Add('PL PL', 'Polish', 'Polski', [
'Class:DeliveryModel/Attribute:description' => 'Opis',
'Class:DeliveryModel/Attribute:description+' => '',
'Class:DeliveryModel/Attribute:name' => 'Nazwa',
'Class:DeliveryModel/Attribute:name+' => '',
'Class:DeliveryModel/Attribute:name+' => 'Don\'t forget to add teams to this delivery model~~',
'Class:DeliveryModel/Attribute:org_id' => 'Organizacja',
'Class:DeliveryModel/Attribute:org_id+' => '',
'Class:DeliveryModel/Attribute:org_id+' => 'Usually the organization that provides the services~~',
'Class:DeliveryModel/Attribute:organization_name' => 'Nazwa organizacji',
'Class:DeliveryModel/Attribute:organization_name+' => 'Nazwa zwyczajowa',
'Class:Organization/Attribute:deliverymodel_id' => 'Model obsługi',
'Class:Organization/Attribute:deliverymodel_id+' => '',
'Class:Organization/Attribute:deliverymodel_id+' => 'This is required for Tickets handling.
The delivery model specifies the teams to which tickets can be assigned.~~',
'Class:Organization/Attribute:deliverymodel_name' => 'Nazwa modelu obsługi',
'Class:ProviderContract' => 'Umowa z dostawcą',
'Class:ProviderContract+' => '',

View File

@@ -73,13 +73,14 @@ Dict::Add('PT BR', 'Brazilian', 'Brazilian', [
'Class:DeliveryModel/Attribute:description' => 'Descrição',
'Class:DeliveryModel/Attribute:description+' => '',
'Class:DeliveryModel/Attribute:name' => 'Nome',
'Class:DeliveryModel/Attribute:name+' => '',
'Class:DeliveryModel/Attribute:name+' => 'Don\'t forget to add teams to this delivery model~~',
'Class:DeliveryModel/Attribute:org_id' => 'Organização',
'Class:DeliveryModel/Attribute:org_id+' => '',
'Class:DeliveryModel/Attribute:org_id+' => 'Usually the organization that provides the services~~',
'Class:DeliveryModel/Attribute:organization_name' => 'Nome da organização',
'Class:DeliveryModel/Attribute:organization_name+' => 'Nome comum',
'Class:Organization/Attribute:deliverymodel_id' => 'Modelo de entrega',
'Class:Organization/Attribute:deliverymodel_id+' => '',
'Class:Organization/Attribute:deliverymodel_id+' => 'This is required for Tickets handling.
The delivery model specifies the teams to which tickets can be assigned.~~',
'Class:Organization/Attribute:deliverymodel_name' => 'Nome do modelo de entrega',
'Class:ProviderContract' => 'Contrato de provedor',
'Class:ProviderContract+' => '',

View File

@@ -74,13 +74,14 @@ Dict::Add('RU RU', 'Russian', 'Русский', [
'Class:DeliveryModel/Attribute:description' => 'Описание',
'Class:DeliveryModel/Attribute:description+' => '',
'Class:DeliveryModel/Attribute:name' => 'Название',
'Class:DeliveryModel/Attribute:name+' => '',
'Class:DeliveryModel/Attribute:name+' => 'Don\'t forget to add teams to this delivery model~~',
'Class:DeliveryModel/Attribute:org_id' => 'Организация',
'Class:DeliveryModel/Attribute:org_id+' => '',
'Class:DeliveryModel/Attribute:org_id+' => 'Usually the organization that provides the services~~',
'Class:DeliveryModel/Attribute:organization_name' => 'Организация',
'Class:DeliveryModel/Attribute:organization_name+' => '',
'Class:Organization/Attribute:deliverymodel_id' => 'Модель предоставления услуг',
'Class:Organization/Attribute:deliverymodel_id+' => 'Модель предоставления услуг (Delivery Model)',
'Class:Organization/Attribute:deliverymodel_id+' => 'This is required for Tickets handling.
The delivery model specifies the teams to which tickets can be assigned.~~',
'Class:Organization/Attribute:deliverymodel_name' => 'Модель предоставления услуг',
'Class:ProviderContract' => 'Договор с поставщиком',
'Class:ProviderContract+' => '',

View File

@@ -73,13 +73,14 @@ Dict::Add('SK SK', 'Slovak', 'Slovenčina', [
'Class:DeliveryModel/Attribute:description' => 'Popis',
'Class:DeliveryModel/Attribute:description+' => '~~',
'Class:DeliveryModel/Attribute:name' => 'Názov',
'Class:DeliveryModel/Attribute:name+' => '~~',
'Class:DeliveryModel/Attribute:name+' => 'Don\'t forget to add teams to this delivery model~~',
'Class:DeliveryModel/Attribute:org_id' => 'Organizácia',
'Class:DeliveryModel/Attribute:org_id+' => '~~',
'Class:DeliveryModel/Attribute:org_id+' => 'Usually the organization that provides the services~~',
'Class:DeliveryModel/Attribute:organization_name' => 'Názov organizácie',
'Class:DeliveryModel/Attribute:organization_name+' => 'Common name~~',
'Class:Organization/Attribute:deliverymodel_id' => 'Model dodávky',
'Class:Organization/Attribute:deliverymodel_id+' => '~~',
'Class:Organization/Attribute:deliverymodel_id+' => 'This is required for Tickets handling.
The delivery model specifies the teams to which tickets can be assigned.~~',
'Class:Organization/Attribute:deliverymodel_name' => 'Názov modelu dodávky',
'Class:ProviderContract' => 'Poskytovateľská zmluva',
'Class:ProviderContract+' => '~~',

View File

@@ -74,13 +74,14 @@ Dict::Add('TR TR', 'Turkish', 'Türkçe', [
'Class:DeliveryModel/Attribute:description' => 'Açıklama',
'Class:DeliveryModel/Attribute:description+' => '~~',
'Class:DeliveryModel/Attribute:name' => 'İsim',
'Class:DeliveryModel/Attribute:name+' => '~~',
'Class:DeliveryModel/Attribute:name+' => 'Don\'t forget to add teams to this delivery model~~',
'Class:DeliveryModel/Attribute:org_id' => 'Organizasyon',
'Class:DeliveryModel/Attribute:org_id+' => '~~',
'Class:DeliveryModel/Attribute:org_id+' => 'Usually the organization that provides the services~~',
'Class:DeliveryModel/Attribute:organization_name' => 'Organizasyon Adı',
'Class:DeliveryModel/Attribute:organization_name+' => 'Ortak Adı',
'Class:Organization/Attribute:deliverymodel_id' => 'Teslimat Modeli',
'Class:Organization/Attribute:deliverymodel_id+' => '~~',
'Class:Organization/Attribute:deliverymodel_id+' => 'This is required for Tickets handling.
The delivery model specifies the teams to which tickets can be assigned.~~',
'Class:Organization/Attribute:deliverymodel_name' => 'Teslimat Modeli Adı',
'Class:ProviderContract' => 'Tedarikçi Sözleşmesi',
'Class:ProviderContract+' => '',

View File

@@ -73,13 +73,14 @@ Dict::Add('ZH CN', 'Chinese', '简体中文', [
'Class:DeliveryModel/Attribute:description' => '描述',
'Class:DeliveryModel/Attribute:description+' => '',
'Class:DeliveryModel/Attribute:name' => '名称',
'Class:DeliveryModel/Attribute:name+' => '',
'Class:DeliveryModel/Attribute:name+' => 'Don\'t forget to add teams to this delivery model~~',
'Class:DeliveryModel/Attribute:org_id' => '组织',
'Class:DeliveryModel/Attribute:org_id+' => '',
'Class:DeliveryModel/Attribute:org_id+' => 'Usually the organization that provides the services~~',
'Class:DeliveryModel/Attribute:organization_name' => '组织名称',
'Class:DeliveryModel/Attribute:organization_name+' => '通用名称',
'Class:Organization/Attribute:deliverymodel_id' => '交付模式',
'Class:Organization/Attribute:deliverymodel_id+' => '',
'Class:Organization/Attribute:deliverymodel_id+' => 'This is required for Tickets handling.
The delivery model specifies the teams to which tickets can be assigned.~~',
'Class:Organization/Attribute:deliverymodel_name' => '交付模式名称',
'Class:ProviderContract' => '供应商合同',
'Class:ProviderContract+' => '',

View File

@@ -18,6 +18,8 @@ use ExecutionKPI;
use InlineImage;
use IssueLog;
use Laminas\Mail\Header\ContentType;
use Laminas\Mail\Header\InReplyTo;
use Laminas\Mail\Header\MessageId;
use Laminas\Mail\Message;
use Combodo\iTop\Core\Authentication\Client\Smtp\Oauth;
use Laminas\Mail\Transport\File;
@@ -374,11 +376,11 @@ class EMailLaminas extends Email
{
$this->m_aData['message_id'] = $sId;
// Note: Swift will add the angle brackets for you
// Note: The email library will add the angle brackets for you
// so let's remove the angle brackets if present, for historical reasons
$sId = str_replace(array('<', '>'), '', $sId);
$this->m_oMessage->getHeaders()->addHeaderLine('Message-ID', $sId);
$this->m_oMessage->getHeaders()->addHeader((new MessageId())->setId($sId));
}
public function SetReferences($sReferences)
@@ -397,7 +399,11 @@ class EMailLaminas extends Email
*/
public function SetInReplyTo(string $sMessageId)
{
$this->AddToHeader('In-Reply-To', $sMessageId);
// Note: Laminas will add the angle brackets for you
// so let's remove the angle brackets if present, for historical reasons
$sId = str_replace(array('<', '>'), '', $sMessageId);
$this->m_oMessage->getHeaders()->addHeader((new InReplyTo())->setIds([$sId]));
}
/**