projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT#71166: Catch blank intro_duration at package definition setup
[freeside.git]
/
FS
/
FS
/
cgp_rule_condition.pm
diff --git
a/FS/FS/cgp_rule_condition.pm
b/FS/FS/cgp_rule_condition.pm
index
f91b3e6
..
772e189
100644
(file)
--- a/
FS/FS/cgp_rule_condition.pm
+++ b/
FS/FS/cgp_rule_condition.pm
@@
-36,7
+36,7
@@
currently supported:
primary key
primary key
-=item condition
+=item condition
name
condition
condition
@@
-52,7
+52,6
@@
params
rulenum
rulenum
-
=back
=head1 METHODS
=back
=head1 METHODS
@@
-114,9
+113,9
@@
sub check {
my $error =
$self->ut_numbern('ruleconditionnum')
my $error =
$self->ut_numbern('ruleconditionnum')
- || $self->ut_text('condition')
- || $self->ut_text('op')
- || $self->ut_text('params')
+ || $self->ut_text('condition
name
')
+ || $self->ut_text
n
('op')
+ || $self->ut_text
n
('params')
|| $self->ut_foreign_key('rulenum', 'cgp_rule', 'rulenum')
;
return $error if $error;
|| $self->ut_foreign_key('rulenum', 'cgp_rule', 'rulenum')
;
return $error if $error;
@@
-124,6
+123,17
@@
sub check {
$self->SUPER::check;
}
$self->SUPER::check;
}
+=item arrayref
+
+Returns an array reference of the conditionname, op and params fields.
+
+=cut
+
+sub arrayref {
+ my $self = shift;
+ [ map $self->$_, qw( conditionname op params ) ];
+}
+
=back
=head1 BUGS
=back
=head1 BUGS