We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d90c25 commit 496d8f6Copy full SHA for 496d8f6
lib/HTML/FormHandler/TraitFor/Model/DBIC.pm
@@ -365,7 +365,7 @@ sub lookup_options {
365
# check for many_to_many multiple select
366
my $resultset = $self_source->resultset;
367
my $new_result = $resultset->new_result( {} );
368
- if ( $new_result && $new_result->can("add_to_$accessor") ) {
+ if ( defined $new_result && $new_result->can("add_to_$accessor") ) {
369
$source = $new_result->$accessor->result_source;
370
}
371
0 commit comments