Bug 27038 - Error when viewing a course reserve that has one or more items
Summary: Error when viewing a course reserve that has one or more items
Status: RESOLVED DUPLICATE of bug 26819
Alias: None
Product: Koha
Classification: Unclassified
Component: Course reserves (show other bugs)
Version: Main
Hardware: All All
: P5 - low blocker (vote)
Assignee: Kyle M Hall
QA Contact: Testopia
URL:
Keywords:
Depends on: 26323
Blocks:
  Show dependency treegraph
 
Reported: 2020-11-16 20:25 UTC by Kyle M Hall
Modified: 2020-11-25 09:30 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 27038: Fix parameters for AuthorisedValues.GetDescriptionByKohaField (3.39 KB, patch)
2020-11-16 20:27 UTC, Kyle M Hall
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle M Hall 2020-11-16 20:25:30 UTC
Calls to GetDescriptionByKohaField are a bit mangled in course-details.tt and throw an error like:

Template process failed: undef error - Can't use string ("NFIC") as a HASH ref while "strict refs" in use at /kohadevbox/koha/Koha/Template/Plugin/AuthorisedValues.pm line 83.
 at /kohadevbox/koha/C4/Templates.pm line 122
Comment 1 Kyle M Hall 2020-11-16 20:27:27 UTC
Created attachment 113684 [details] [review]
Bug 27038: Fix parameters for AuthorisedValues.GetDescriptionByKohaField

Calls to GetDescriptionByKohaField are a bit mangled in
course-details.tt and throw an error like:

Template process failed: undef error - Can't use string ("NFIC") as a
HASH ref while "strict refs" in use at
/kohadevbox/koha/Koha/Template/Plugin/AuthorisedValues.pm line 83.
 at /kohadevbox/koha/C4/Templates.pm line 122

Test Plan:
1) Check out master
2) Create a course
3) Add an item to the course
4) View the course
5) Note the error
6) Apply this patch
7) Reload the page
8) No error!
Comment 2 Katrin Fischer 2020-11-16 21:07:35 UTC
I believe this is a partial duplicate? We already have bug 26819 waiting for a follow-up from you.
Comment 3 Jonathan Druart 2020-11-25 09:30:23 UTC

*** This bug has been marked as a duplicate of bug 26819 ***