[freeside-commits] branch master updated. f38153f6d439071fa467af22c3c727906d49d497
Mitch Jackson
mitch at freeside.biz
Mon Jun 10 13:52:08 PDT 2019
The branch, master has been updated
via f38153f6d439071fa467af22c3c727906d49d497 (commit)
from 38e34bbc53a4222c7507e95914e1364a5a74623f (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 f38153f6d439071fa467af22c3c727906d49d497
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