[freeside-commits] branch FREESIDE_4_BRANCH updated. 4c36c9b856836762120d70d728b963518908b1f7
Mitch Jackson
mitch at freeside.biz
Mon Jun 10 14:04:36 PDT 2019
The branch, FREESIDE_4_BRANCH has been updated
via 4c36c9b856836762120d70d728b963518908b1f7 (commit)
from 35058cbcdc3bd3faf365a063a16b4015bc5d95f8 (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 4c36c9b856836762120d70d728b963518908b1f7
Author: Mitch Jackson <mitch at freeside.biz>
Date: Mon Jun 10 16:51:08 2019 -0400
RT# 83460 Fix validation bug on part_event_option
diff --git a/FS/FS/part_event_option.pm b/FS/FS/part_event_option.pm
index 1421f6f0f..6c34c6878 100644
--- a/FS/FS/part_event_option.pm
+++ b/FS/FS/part_event_option.pm
@@ -189,7 +189,8 @@ sub check {
if ( my %option_fields = $self->option_fields ) {
if ( my $option_field = $option_fields{ $self->optionname } ) {
- if ( my $validation_method = $option_field->{validation} ) {
+ if ( ref $option_field && $option_field->{validation} ) {
+ my $validation_method = $option_field->{validation};
$error = $self->$validation_method('optionvalue');
}
}
-----------------------------------------------------------------------
Summary of changes:
FS/FS/part_event_option.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list