diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php
index 53ac5846628..3aa6a16d3ef 100644
--- a/htdocs/comm/action/card.php
+++ b/htdocs/comm/action/card.php
@@ -2169,7 +2169,7 @@ if ($id > 0) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/comm/action/document.php b/htdocs/comm/action/document.php
index f80476c2f9a..b02b2850346 100644
--- a/htdocs/comm/action/document.php
+++ b/htdocs/comm/action/document.php
@@ -176,7 +176,7 @@ if ($object->id > 0) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/comm/action/info.php b/htdocs/comm/action/info.php
index e009c9fccf7..749ca6a0c62 100644
--- a/htdocs/comm/action/info.php
+++ b/htdocs/comm/action/info.php
@@ -104,7 +104,7 @@ if (isModEnabled('project')) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/comm/propal/card.php b/htdocs/comm/propal/card.php
index 9180be4f99b..648fc6e18c4 100644
--- a/htdocs/comm/propal/card.php
+++ b/htdocs/comm/propal/card.php
@@ -2317,7 +2317,7 @@ if ($action == 'create') {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/comm/propal/contact.php b/htdocs/comm/propal/contact.php
index 835dcc70fd0..42f3f34f8d4 100644
--- a/htdocs/comm/propal/contact.php
+++ b/htdocs/comm/propal/contact.php
@@ -156,7 +156,7 @@ if ($object->id > 0) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/comm/propal/document.php b/htdocs/comm/propal/document.php
index 799539d97b1..f1d1d7ef644 100644
--- a/htdocs/comm/propal/document.php
+++ b/htdocs/comm/propal/document.php
@@ -154,7 +154,7 @@ if ($object->id > 0) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/comm/propal/info.php b/htdocs/comm/propal/info.php
index 26a65f9a66e..986601a91bc 100644
--- a/htdocs/comm/propal/info.php
+++ b/htdocs/comm/propal/info.php
@@ -101,7 +101,7 @@ if (isModEnabled('project')) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/comm/propal/note.php b/htdocs/comm/propal/note.php
index 64fe59edea5..fe4895ad2f8 100644
--- a/htdocs/comm/propal/note.php
+++ b/htdocs/comm/propal/note.php
@@ -126,7 +126,7 @@ if ($object->id > 0) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php
index 0bffd98e739..786fb1a2ad2 100644
--- a/htdocs/commande/card.php
+++ b/htdocs/commande/card.php
@@ -2346,7 +2346,7 @@ if ($action == 'create' && $usercancreate) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/commande/contact.php b/htdocs/commande/contact.php
index aa61426e435..04c16e68aa0 100644
--- a/htdocs/commande/contact.php
+++ b/htdocs/commande/contact.php
@@ -150,7 +150,7 @@ if ($id > 0 || !empty($ref)) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/commande/document.php b/htdocs/commande/document.php
index ef1e1ce1697..0c35c3489f7 100644
--- a/htdocs/commande/document.php
+++ b/htdocs/commande/document.php
@@ -147,7 +147,7 @@ if ($id > 0 || !empty($ref)) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/commande/info.php b/htdocs/commande/info.php
index e319cb95d36..0acc5b793aa 100644
--- a/htdocs/commande/info.php
+++ b/htdocs/commande/info.php
@@ -101,7 +101,7 @@ if (isModEnabled('project')) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/commande/note.php b/htdocs/commande/note.php
index 946902e1a11..e84dd5ad6e1 100644
--- a/htdocs/commande/note.php
+++ b/htdocs/commande/note.php
@@ -120,7 +120,7 @@ if ($id > 0 || !empty($ref)) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php
index a193383836b..10cf7b624fc 100644
--- a/htdocs/compta/facture/card.php
+++ b/htdocs/compta/facture/card.php
@@ -4383,7 +4383,7 @@ if ($action == 'create') {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/compta/facture/contact.php b/htdocs/compta/facture/contact.php
index 7b7dd41ef7e..b367301911d 100644
--- a/htdocs/compta/facture/contact.php
+++ b/htdocs/compta/facture/contact.php
@@ -155,7 +155,7 @@ if ($id > 0 || !empty($ref)) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/compta/facture/document.php b/htdocs/compta/facture/document.php
index c4b11cea186..5cec55e2439 100644
--- a/htdocs/compta/facture/document.php
+++ b/htdocs/compta/facture/document.php
@@ -159,7 +159,7 @@ if ($id > 0 || !empty($ref)) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/compta/facture/info.php b/htdocs/compta/facture/info.php
index 340c40afa4a..1ea28b295c3 100644
--- a/htdocs/compta/facture/info.php
+++ b/htdocs/compta/facture/info.php
@@ -115,7 +115,7 @@ if (isModEnabled('project')) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/compta/facture/note.php b/htdocs/compta/facture/note.php
index f6c81bbf800..af08c6163e2 100644
--- a/htdocs/compta/facture/note.php
+++ b/htdocs/compta/facture/note.php
@@ -137,7 +137,7 @@ if ($id > 0 || !empty($ref)) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/compta/facture/prelevement.php b/htdocs/compta/facture/prelevement.php
index 172ec0c1120..d475e83c55b 100644
--- a/htdocs/compta/facture/prelevement.php
+++ b/htdocs/compta/facture/prelevement.php
@@ -375,7 +375,7 @@ if ($object->id > 0) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/compta/sociales/note.php b/htdocs/compta/sociales/note.php
index c65b731109d..0f85b6ddf06 100644
--- a/htdocs/compta/sociales/note.php
+++ b/htdocs/compta/sociales/note.php
@@ -102,7 +102,7 @@ if ($id > 0 || !empty($ref)) {
$proj->fetch($object->fk_project);
$morehtmlref .= ' : '.$proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
} else {
$morehtmlref .= '';
diff --git a/htdocs/contrat/agenda.php b/htdocs/contrat/agenda.php
index 9ddab3b6487..3a3c5440b30 100644
--- a/htdocs/contrat/agenda.php
+++ b/htdocs/contrat/agenda.php
@@ -188,7 +188,7 @@ if ($id > 0) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/contrat/card.php b/htdocs/contrat/card.php
index b2a89ab63ec..802305b6306 100644
--- a/htdocs/contrat/card.php
+++ b/htdocs/contrat/card.php
@@ -1391,7 +1391,7 @@ if ($action == 'create') {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/contrat/contact.php b/htdocs/contrat/contact.php
index 3c3bb00baeb..e5557c28a5b 100644
--- a/htdocs/contrat/contact.php
+++ b/htdocs/contrat/contact.php
@@ -172,7 +172,7 @@ if ($id > 0 || !empty($ref)) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/contrat/document.php b/htdocs/contrat/document.php
index 477d8818c4b..652738f10b5 100644
--- a/htdocs/contrat/document.php
+++ b/htdocs/contrat/document.php
@@ -159,7 +159,7 @@ if ($object->id) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/contrat/note.php b/htdocs/contrat/note.php
index 1038fe83de3..f17cc11f748 100644
--- a/htdocs/contrat/note.php
+++ b/htdocs/contrat/note.php
@@ -128,7 +128,7 @@ if ($id > 0 || !empty($ref)) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/delivery/card.php b/htdocs/delivery/card.php
index 0b019bec92c..b98b75015ab 100644
--- a/htdocs/delivery/card.php
+++ b/htdocs/delivery/card.php
@@ -345,7 +345,7 @@ if ($action == 'create') {
$proj->fetch($objectsrc->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php
index 5e9dc8fb1a7..f002dc8fe27 100644
--- a/htdocs/expedition/card.php
+++ b/htdocs/expedition/card.php
@@ -1759,7 +1759,7 @@ if ($action == 'create') {
$proj->fetch($objectsrc->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/expedition/contact.php b/htdocs/expedition/contact.php
index 4ef381dfc9a..48822121fa3 100644
--- a/htdocs/expedition/contact.php
+++ b/htdocs/expedition/contact.php
@@ -165,7 +165,7 @@ if ($id > 0 || !empty($ref)) {
$proj->fetch($objectsrc->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/expedition/document.php b/htdocs/expedition/document.php
index 4aca218a611..517c1cea8d2 100644
--- a/htdocs/expedition/document.php
+++ b/htdocs/expedition/document.php
@@ -157,7 +157,7 @@ if ($id > 0 || !empty($ref)) {
$proj->fetch($objectsrc->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/expedition/note.php b/htdocs/expedition/note.php
index 2e98169f042..4401af0b20c 100644
--- a/htdocs/expedition/note.php
+++ b/htdocs/expedition/note.php
@@ -126,7 +126,7 @@ if ($id > 0 || !empty($ref)) {
$proj->fetch($objectsrc->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/expedition/shipment.php b/htdocs/expedition/shipment.php
index c1b4a04fcee..9394269a03a 100644
--- a/htdocs/expedition/shipment.php
+++ b/htdocs/expedition/shipment.php
@@ -303,7 +303,7 @@ if ($id > 0 || !empty($ref)) {
$proj->fetch($objectsrc->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php
index ce85f581859..5dbe81ca4a4 100644
--- a/htdocs/fourn/commande/card.php
+++ b/htdocs/fourn/commande/card.php
@@ -2068,7 +2068,7 @@ if ($action == 'create') {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/fourn/commande/contact.php b/htdocs/fourn/commande/contact.php
index 3a8a5a5c49a..3ca1eca77bf 100644
--- a/htdocs/fourn/commande/contact.php
+++ b/htdocs/fourn/commande/contact.php
@@ -155,7 +155,7 @@ if ($id > 0 || !empty($ref)) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php
index 1f63c5a594b..41c15dabb68 100644
--- a/htdocs/fourn/commande/dispatch.php
+++ b/htdocs/fourn/commande/dispatch.php
@@ -561,7 +561,7 @@ if ($id > 0 || !empty($ref)) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/fourn/commande/document.php b/htdocs/fourn/commande/document.php
index b7d8ba118a0..b3dfb8b9ece 100644
--- a/htdocs/fourn/commande/document.php
+++ b/htdocs/fourn/commande/document.php
@@ -147,7 +147,7 @@ if ($object->id > 0) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/fourn/commande/info.php b/htdocs/fourn/commande/info.php
index 4129947282f..fc3918a32f3 100644
--- a/htdocs/fourn/commande/info.php
+++ b/htdocs/fourn/commande/info.php
@@ -160,7 +160,7 @@ if (isModEnabled('project')) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/fourn/commande/note.php b/htdocs/fourn/commande/note.php
index 27e74006d85..33648dd9817 100644
--- a/htdocs/fourn/commande/note.php
+++ b/htdocs/fourn/commande/note.php
@@ -129,7 +129,7 @@ if ($id > 0 || !empty($ref)) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php
index a66f48fc2e0..1738dd69868 100644
--- a/htdocs/fourn/facture/card.php
+++ b/htdocs/fourn/facture/card.php
@@ -2893,7 +2893,7 @@ if ($action == 'create') {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/fourn/facture/contact.php b/htdocs/fourn/facture/contact.php
index 1317fe2f0a7..542b37db092 100644
--- a/htdocs/fourn/facture/contact.php
+++ b/htdocs/fourn/facture/contact.php
@@ -156,7 +156,7 @@ if ($id > 0 || !empty($ref)) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/fourn/facture/document.php b/htdocs/fourn/facture/document.php
index 45189f5395e..03012acbcaf 100644
--- a/htdocs/fourn/facture/document.php
+++ b/htdocs/fourn/facture/document.php
@@ -132,7 +132,7 @@ if ($object->id > 0) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/fourn/facture/info.php b/htdocs/fourn/facture/info.php
index 0dc58debba3..9223d47b791 100644
--- a/htdocs/fourn/facture/info.php
+++ b/htdocs/fourn/facture/info.php
@@ -98,7 +98,7 @@ if (isModEnabled('project')) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/fourn/facture/note.php b/htdocs/fourn/facture/note.php
index 0136ee1d11d..1c61fdc8e07 100644
--- a/htdocs/fourn/facture/note.php
+++ b/htdocs/fourn/facture/note.php
@@ -128,7 +128,7 @@ if ($object->id > 0) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php
index 1495df77df7..c5dcf0d4bb4 100644
--- a/htdocs/projet/class/project.class.php
+++ b/htdocs/projet/class/project.class.php
@@ -1347,7 +1347,7 @@ class Project extends CommonObject
}
$result .= $linkend;
if ($withpicto != 2) {
- $result .= (($addlabel && $this->title) ? $sep.dol_trunc($this->title, ($addlabel > 1 ? $addlabel : 0)) : '');
+ $result .= (($addlabel && $this->title) ? ''.$sep.dol_trunc($this->title, ($addlabel > 1 ? $addlabel : 0)).'' : '');
}
global $action;
diff --git a/htdocs/reception/card.php b/htdocs/reception/card.php
index d5106a3b5ea..9afa6ec57d8 100644
--- a/htdocs/reception/card.php
+++ b/htdocs/reception/card.php
@@ -1395,7 +1395,7 @@ if ($action == 'create') {
$proj->fetch($objectsrc->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/reception/contact.php b/htdocs/reception/contact.php
index 01ff7218f9e..a03460b1e49 100644
--- a/htdocs/reception/contact.php
+++ b/htdocs/reception/contact.php
@@ -179,7 +179,7 @@ if ($id > 0 || !empty($ref)) {
$proj->fetch($objectsrc->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/reception/document.php b/htdocs/reception/document.php
index 6ef302f4143..980b5e50a33 100644
--- a/htdocs/reception/document.php
+++ b/htdocs/reception/document.php
@@ -170,7 +170,7 @@ if ($id > 0 || !empty($ref)) {
$proj->fetch($objectsrc->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/reception/note.php b/htdocs/reception/note.php
index 5b04e971702..d916099b872 100644
--- a/htdocs/reception/note.php
+++ b/htdocs/reception/note.php
@@ -150,7 +150,7 @@ if ($id > 0 || !empty($ref)) {
$proj->fetch($objectsrc->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/resource/element_resource.php b/htdocs/resource/element_resource.php
index 7e94465219f..c063e049f44 100644
--- a/htdocs/resource/element_resource.php
+++ b/htdocs/resource/element_resource.php
@@ -367,7 +367,7 @@ if (!$ret) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/supplier_proposal/contact.php b/htdocs/supplier_proposal/contact.php
index 6b01d2af35a..1fa344cbb5e 100644
--- a/htdocs/supplier_proposal/contact.php
+++ b/htdocs/supplier_proposal/contact.php
@@ -152,7 +152,7 @@ if ($id > 0 || !empty($ref)) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/ticket/agenda.php b/htdocs/ticket/agenda.php
index d14cff7a474..9111faedcb7 100644
--- a/htdocs/ticket/agenda.php
+++ b/htdocs/ticket/agenda.php
@@ -208,7 +208,7 @@ if (isModEnabled('project')) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/ticket/card.php b/htdocs/ticket/card.php
index 12944e4b5ef..1290a9a9a9b 100755
--- a/htdocs/ticket/card.php
+++ b/htdocs/ticket/card.php
@@ -968,18 +968,18 @@ if ($action == 'create' || $action == 'presend') {
$langs->load("projects");
$morehtmlref .= '
';
if ($permissiontoedit) {
- $morehtmlref .= img_picto($langs->trans("Project"), 'project', 'class="pictofixedwidth"');
+ $object->fetch_project();
+ $morehtmlref .= img_picto($langs->trans("Project"), 'project'.((is_object($object->project) && $object->project->public) ? 'pub' : ''), 'class="pictofixedwidth"');
if ($action != 'classify') {
$morehtmlref .= ''.img_edit($langs->transnoentitiesnoconv('SetProject')).' ';
}
$morehtmlref .= $form->form_project($_SERVER['PHP_SELF'].'?id='.$object->id, $object->socid, $object->fk_project, ($action == 'classify' ? 'projectid' : 'none'), 0, ($action == 'classify' ? 1 : 0), 0, 1, '');
} else {
if (!empty($object->fk_project)) {
- $proj = new Project($db);
- $proj->fetch($object->fk_project);
- $morehtmlref .= $proj->getNomUrl(1);
- if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $object->fetch_project();
+ $morehtmlref .= $object->project->getNomUrl(1);
+ if ($object->project->title) {
+ $morehtmlref .= ' - '.dol_escape_htmltag($object->project->title).'';
}
}
}
diff --git a/htdocs/ticket/contact.php b/htdocs/ticket/contact.php
index 5e7cadf07fe..7f5a36faf1b 100644
--- a/htdocs/ticket/contact.php
+++ b/htdocs/ticket/contact.php
@@ -242,7 +242,7 @@ if ($id > 0 || !empty($track_id) || !empty($ref)) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/ticket/document.php b/htdocs/ticket/document.php
index 8a95623444f..8015cb32145 100644
--- a/htdocs/ticket/document.php
+++ b/htdocs/ticket/document.php
@@ -177,7 +177,7 @@ if ($object->id) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}
diff --git a/htdocs/ticket/messaging.php b/htdocs/ticket/messaging.php
index 6e5ee567805..f1fd631234b 100644
--- a/htdocs/ticket/messaging.php
+++ b/htdocs/ticket/messaging.php
@@ -204,7 +204,7 @@ if (isModEnabled('project')) {
$proj->fetch($object->fk_project);
$morehtmlref .= $proj->getNomUrl(1);
if ($proj->title) {
- $morehtmlref .= ' - '.dol_escape_htmltag($proj->title);
+ $morehtmlref .= ' - '.dol_escape_htmltag($proj->title).'';
}
}
}