[freeside-commits] branch FREESIDE_3_BRANCH updated. 7d826a6b9941246d49956d19ed723f910f850d35
Mitch Jackson
mitch at freeside.biz
Mon Jun 10 14:16:18 PDT 2019
The branch, FREESIDE_3_BRANCH has been updated
via 7d826a6b9941246d49956d19ed723f910f850d35 (commit)
from 34e000a3696383be585eb0cb35768579db4e083c (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 7d826a6b9941246d49956d19ed723f910f850d35
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