projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git]
/
FS
/
FS
/
part_event_condition.pm
diff --git
a/FS/FS/part_event_condition.pm
b/FS/FS/part_event_condition.pm
index
32f19a3
..
78aa3b1
100644
(file)
--- a/
FS/FS/part_event_condition.pm
+++ b/
FS/FS/part_event_condition.pm
@@
-185,6
+185,10
@@
foreach my $INC ( @INC ) {
};
my $mod = $1;
my $fullmod = "FS::part_event::Condition::$mod";
};
my $mod = $1;
my $fullmod = "FS::part_event::Condition::$mod";
+ if ( $fullmod =~ /_(Mixin|Common)$/ ) {
+ #warn "skipping $1 class $fullmod\n";
+ next;
+ }
eval "use $fullmod;";
if ( $@ ) {
die "error using $fullmod (skipping): $@\n" if $@;
eval "use $fullmod;";
if ( $@ ) {
die "error using $fullmod (skipping): $@\n" if $@;
@@
-220,8
+224,7
@@
sub conditions {
my( $class, $eventtable ) = @_;
(
map { $_ => $conditions{$_} }
my( $class, $eventtable ) = @_;
(
map { $_ => $conditions{$_} }
-# sort { $conditions{$a}->{'default_weight'}<=>$conditions{$b}->{'default_weight'} }
-# sort by ?
+ sort {$conditions{$a}->{'description'} cmp $conditions{$b}->{'description'}}
$class->all_conditionnames( $eventtable )
);
$class->all_conditionnames( $eventtable )
);