]> git.koha-community.org Git - koha.git/commit
Bug 14143 - Patron cards: Crash (confusion between table names creator_templates...
authorMarc Véron <veron@veron.ch>
Mon, 4 May 2015 21:29:29 +0000 (23:29 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 28 Apr 2017 12:39:41 +0000 (08:39 -0400)
commit6b5c632d9e254aac419b0576508ea6296b7b03a2
tree69b1289f3f9632f5abf37499be695ac87a3f5e28
parent709358e0c98a583b48f0fee13adb45c00f51b5ff
Bug 14143 - Patron cards: Crash (confusion between table names creator_templates and club_template_enrollment_fields)

To reproduce:
Go to Home > Tools > Patron card creator
Click on 'Manage profiles'
Result:
Can't use string ("1") as an ARRAY ref while "strict refs" in use at /usr/share/kohaclone/C4/Creators/Lib.pm line 564.

Reason:
Select statment to get field 'template code' from table 'club_template_enrollment_fields' (!) instead of 'table creator_templates'.

To test:
Apply patch
Try to reproduce issue.

Amended because of typo (_ instead of -)

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Creators/Lib.pm