noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 28/32: Cosmetic


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 28/32: Cosmetic
Date: Thu, 5 Jan 2023 14:18:32 -0500 (EST)

sparkyx pushed a commit to branch devel
in repository noalyss.

commit a7ba9b32d2e3e74ccd8abaa618ba1b0244bc6497
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Thu Jan 5 11:36:37 2023 +0100

    Cosmetic
---
 include/template/follow_up-display.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/template/follow_up-display.php 
b/include/template/follow_up-display.php
index 1dc1c595d..f2230a7a9 100644
--- a/include/template/follow_up-display.php
+++ b/include/template/follow_up-display.php
@@ -300,7 +300,7 @@ function small(p_id_textarea){
                 echo '</div>';
                 echo '</pre>';
             }
-    } else {
+    } elseif ( count($acomment)> 0 && $p_view != 'READ') {
         // there is no comments so there is no description, just input one
           echo h2(_("Description"));
           $description->set_enrichText('enrich');
@@ -308,7 +308,9 @@ function small(p_id_textarea){
           echo '<div class="textarea" 
style="margin-left:5%;margin-right:5%;margin-bottom:1rem;width:90%;">';
           echo $description->input();
           echo '</div>';
-   }
+   } else {
+        // no description and no comment
+    }
 
 
         //---------------------------------- Comment 
-----------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]