Hi Tom,
The $filterref doesn't get set unless $self->filter is called and all that method does is accept filters. So if there is no filter, $self->{filter} is undef or has a filter and is set to a non-empty hashref.
Though, if @query_results is empty, yes, there is a problem. It is advisable to add the line
@query_results or return;
right before:
# Now let's limit our search, and prepare how we are going to get the data.
if ( $self->{get_fields} ) {
Hope this helps,
Aki
The $filterref doesn't get set unless $self->filter is called and all that method does is accept filters. So if there is no filter, $self->{filter} is undef or has a filter and is set to a non-empty hashref.
Though, if @query_results is empty, yes, there is a problem. It is advisable to add the line
@query_results or return;
right before:
# Now let's limit our search, and prepare how we are going to get the data.
if ( $self->{get_fields} ) {
Hope this helps,
Aki