[Koha-bugs] [Bug 18376] authority framework creation fails under Plack

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 18 21:45:18 CEST 2017


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

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

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

--- Comment #6 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 63544
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=63544&action=edit
Bug 18376 - authority framework creation fails under Plack

With plack, when creating a new authority framework from another, you get the
error :
Can't call method "prepare" on an undefined value at
(...)/src/admin/auth_tag_structure.pl line 267.

Looks like plack does not like when the var $dbh from the script is called
inside a sub.

This patch adds a local var $dbh inside sub duplicate_auth_framework(), like in
sub StringSearch().

Also correctes a redefine of my $sth.

Test plan:
- Go to Administration > Authority types
- Create a new type
- On this new type click on Actions > MARC Structure
- Select another type and click OK
=> You must get a table filled with the tag structure
Check with and without plack
You may not be able to reproduce the error with plack.

Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>

Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>

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


More information about the Koha-bugs mailing list