From 3c5f3f7b858d57a82be46c08b4999a96cd4ba7a7 Mon Sep 17 00:00:00 2001 From: Atm-Gregr Date: Mon, 12 Sep 2022 16:28:06 +0200 Subject: [PATCH 1/4] fix --- htdocs/projet/tasks/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/projet/tasks/list.php b/htdocs/projet/tasks/list.php index 4af49c7a3d5..181ae20589d 100644 --- a/htdocs/projet/tasks/list.php +++ b/htdocs/projet/tasks/list.php @@ -988,7 +988,7 @@ while ($i < min($num, $limit)) { // Description if (!empty($arrayfields['t.description']['checked'])) { print ''; - print dol_escape_htmltag($object->description); + print $object->description; print ''; if (!$i) { $totalarray['nbfield']++; From 527cfadf0f168e61918c1e1a8aa3215cc4236934 Mon Sep 17 00:00:00 2001 From: Atm-Gregr Date: Mon, 12 Sep 2022 16:31:00 +0200 Subject: [PATCH 2/4] nl2br like on the card --- htdocs/projet/tasks/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/projet/tasks/list.php b/htdocs/projet/tasks/list.php index 181ae20589d..65ceda08242 100644 --- a/htdocs/projet/tasks/list.php +++ b/htdocs/projet/tasks/list.php @@ -988,7 +988,7 @@ while ($i < min($num, $limit)) { // Description if (!empty($arrayfields['t.description']['checked'])) { print ''; - print $object->description; + print nl2br($object->description); print ''; if (!$i) { $totalarray['nbfield']++; From 4f9c273c644f2ccc157674144ec9a87cd9102db4 Mon Sep 17 00:00:00 2001 From: Atm-Gregr Date: Tue, 13 Sep 2022 14:19:28 +0200 Subject: [PATCH 3/4] retours --- htdocs/projet/tasks/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/projet/tasks/list.php b/htdocs/projet/tasks/list.php index 65ceda08242..4f7c4bf7a42 100644 --- a/htdocs/projet/tasks/list.php +++ b/htdocs/projet/tasks/list.php @@ -988,7 +988,7 @@ while ($i < min($num, $limit)) { // Description if (!empty($arrayfields['t.description']['checked'])) { print ''; - print nl2br($object->description); + print dolGetFirstLineOfText($object->description, 5); print ''; if (!$i) { $totalarray['nbfield']++; From 7d4c7e0f6b7090a98838366da9df4049efb27f88 Mon Sep 17 00:00:00 2001 From: Atm-Gregr Date: Tue, 13 Sep 2022 14:28:57 +0200 Subject: [PATCH 4/4] stickler --- htdocs/projet/tasks/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/projet/tasks/list.php b/htdocs/projet/tasks/list.php index 4f7c4bf7a42..d74b84dd7ba 100644 --- a/htdocs/projet/tasks/list.php +++ b/htdocs/projet/tasks/list.php @@ -988,7 +988,7 @@ while ($i < min($num, $limit)) { // Description if (!empty($arrayfields['t.description']['checked'])) { print ''; - print dolGetFirstLineOfText($object->description, 5); + print dolGetFirstLineOfText($object->description, 5); print ''; if (!$i) { $totalarray['nbfield']++;