[Koha-bugs] [Bug 22249] Error when submitting Mana comment

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 15 13:22:03 CET 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22249

--- Comment #2 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
(In reply to Jon Knight from comment #1)
> Not tackling the cause of this directly (ie why is it requesting a module
> that doesn't exist and hasn't be loaded into the code) but what about having
> something like this before line 89:
> 
> my $loaded = $packages->VERSION;
> if(!$loaded) {
>     eval('use '.$packages);
>     if(!$packages->VERSION) {
>         warn "Can't load package $packages: $!\n";
>     }
> }

We usually use Module::Load::Conditional, but yes it is the same idea.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Koha-bugs mailing list