projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b49e5e7
)
quick kludge to eliminate exact duplicates in h_labels_short in an effort to reduce...
author
ivan
<ivan>
Fri, 10 Oct 2008 23:36:17 +0000
(23:36 +0000)
committer
ivan
<ivan>
Fri, 10 Oct 2008 23:36:17 +0000
(23:36 +0000)
FS/FS/cust_pkg.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_pkg.pm
b/FS/FS/cust_pkg.pm
index
606cb54
..
bc6e46b
100644
(file)
--- a/
FS/FS/cust_pkg.pm
+++ b/
FS/FS/cust_pkg.pm
@@
-1380,7
+1380,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)";