[Koha-bugs] [Bug 26138] Errors if enable_plugins is zero

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 5 12:29:03 CEST 2020


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

Alex Buckley <alexbuckley at catalyst.net.nz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #107819|0                           |1
        is obsolete|                            |

--- Comment #2 from Alex Buckley <alexbuckley at catalyst.net.nz> ---
Created attachment 107825
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107825&action=edit
Bug 26138: Make Koha::Plugins->call return consistent value

It must return an empty array in case the enable_plugins config flag is
disabled

Test plan:
Turn the config off in koha-conf
Start a search at the OPAC
Without this patch you got:
  Can't use string ("0") as a HASH ref while "strict refs" in use at
/home/vagrant/kohaclone/opac/opac-search.pl line 661
With this patch applied you see the search result

Followed test plan - works as described.

Signed-off-by: Alex Buckley <alexbuckley at catalyst.net.nz>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list