Browse Source

Bug 23166: Early return if no set

It prevents valid_template check to raise
Can't call method "filter_by_current" without a package or object reference at /kohadevbox/koha/Koha/Template/Plugin/Context.pm line 49.

Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
tags/v20.11.00
Jonathan Druart 10 months ago
parent
commit
992edc43b0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      Koha/Template/Plugin/Context.pm

+ 1
- 0
Koha/Template/Plugin/Context.pm View File

@@ -46,6 +46,7 @@ Return object set in scalar context

sub Scalar {
my ( $self, $set, $method ) = @_;
return unless $set;
$set = $set->$method;
return $set;
}


Loading…
Cancel
Save