[freeside-commits] branch FREESIDE_4_BRANCH updated. 889eafade02f1b7463cc47202020ddb8c5d8394f
Ivan Kohler
ivan at freeside.biz
Sat Feb 3 12:57:44 PST 2018
The branch, FREESIDE_4_BRANCH has been updated
via 889eafade02f1b7463cc47202020ddb8c5d8394f (commit)
from f4d3ad765d2309020bed99ef25a4916b8c63ba07 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 889eafade02f1b7463cc47202020ddb8c5d8394f
Author: Ivan Kohler <ivan at freeside.biz>
Date: Sat Feb 3 12:57:43 2018 -0800
alpha sort CDR formats, weight has lost all usefulness
diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm
index 331ac0f2f..844b7fd5c 100644
--- a/FS/FS/cdr.pm
+++ b/FS/FS/cdr.pm
@@ -1659,7 +1659,12 @@ foreach my $INC ( @INC ) {
tie my %import_formats, 'Tie::IxHash',
map { $_ => $cdr_info{$_}->{'name'} }
- sort { $cdr_info{$a}->{'weight'} <=> $cdr_info{$b}->{'weight'} }
+
+ #this is not doing anything useful anymore
+ #sort { $cdr_info{$a}->{'weight'} <=> $cdr_info{$b}->{'weight'} }
+ #so just sort alpha
+ sort { lc($cdr_info{$a}->{'name'}) cmp lc($cdr_info{$b}->{'name'}) }
+
grep { exists($cdr_info{$_}->{'import_fields'}) }
keys %cdr_info;
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cdr.pm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list