projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
177001f
)
quick kludge to eliminate exact duplicates in h_labels_short in an effort to reduce...
author
ivan
<ivan>
Fri, 10 Oct 2008 23:30:41 +0000
(23:30 +0000)
committer
ivan
<ivan>
Fri, 10 Oct 2008 23:30:41 +0000
(23:30 +0000)
FS/FS/cust_pkg.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_pkg.pm
b/FS/FS/cust_pkg.pm
index
fd8b73a
..
b3359ca
100644
(file)
--- a/
FS/FS/cust_pkg.pm
+++ b/
FS/FS/cust_pkg.pm
@@
-1504,7
+1504,8
@@
sub h_labels_short {
foreach $self->h_labels(@_);
my @labels;
foreach my $label ( keys %labels ) {
- my @values = @{ $labels{$label} };
+ my %seen = ();
+ my @values = grep { ! $seen{$_}++ } @{ $labels{$label} };
my $num = scalar(@values);
if ( $num > $max_same_services ) {
push @labels, "$label ($num)";