Add - separator between comments in tooltip.
authorMaxime Bourget <bmx007@gmail.com>
Tue, 7 May 2013 12:41:44 +0000 (13:41 +0100)
committerMaxime Bourget <bmx007@gmail.com>
Tue, 7 May 2013 12:41:44 +0000 (13:41 +0100)
includes/order_lines.inc

index cd0f8602464591db5f883a2c8dbb937642d2267b..5102966594bc05796c74359a72c4891626e0d741 100644 (file)
@@ -86,7 +86,7 @@ function customer_link($row) {
 }
 
 function aggregate_comment($row) {
-       $comment =  $row['order_comment'].$row['detail_comment'];
+       $comment =  $row['order_comment'].";".$row['detail_comment'];
        if($comment) {
                $comments = array_map('trim', explode(';', $comment));
                $comments = array_filter($comments);
@@ -94,7 +94,7 @@ function aggregate_comment($row) {
                if(count($comments) == 0)
                        return $first;
                else {
-                       $tooltip = implode('<br>', $comments);
+                       $tooltip = implode('<br> - ', $comments);
                        return "$first <span class='before-tooltip'>more<span class='tooltip'>&nbsp$tooltip</span><span>";
                }
        }