diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 876e23640..76e80312a 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -2094,15 +2094,21 @@ $(document).ready( function() { $allcomments = array('-1'=>array(), '1'=>array()); foreach ($receiptStatus as $r) { $rstat[''.$r['status']]++; - if($r['comment']) - $allcomments[''.$r['status']][] = htmlspecialchars($r['comment']); + if($r['comment']) { +// $allcomments[''.$r['status']][] = htmlspecialchars($r['comment']); + $m5 = md5(trim($r['comment'])); + if($allcomments[''.$r['status']][$m5]) + $allcomments[''.$r['status']][$m5]['n']++; + else + $allcomments[''.$r['status']][$m5] = array('n'=>1, 'c'=>htmlspecialchars(trim($r['comment']))); + } } $totalreceipts = $rstat['-1'] + $rstat['0'] + $rstat['1']; if($totalreceipts) { $content .= ";