From: Maxime Bourget Date: Tue, 7 May 2013 12:41:44 +0000 (+0100) Subject: Add - separator between comments in tooltip. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=9dc9e5956ed5c6979f39b8f36e6c7ce8c3efe8ba;p=order_line_extra.git Add - separator between comments in tooltip. --- diff --git a/includes/order_lines.inc b/includes/order_lines.inc index cd0f860..5102966 100644 --- a/includes/order_lines.inc +++ b/includes/order_lines.inc @@ -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('
', $comments); + $tooltip = implode('
- ', $comments); return "$first more $tooltip"; } }