Summary: | Wrong call to GetBranchItemRule in circ/returns.pl | ||
---|---|---|---|
Product: | Koha | Reporter: | Jonathan Druart <jonathan.druart> |
Component: | Circulation | Assignee: | Jonathan Druart <jonathan.druart> |
Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
Severity: | major | ||
Priority: | P5 - low | CC: | gmcharlt, kyle.m.hall, tomascohen |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Small patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Bug Depends on: | 7981 | ||
Bug Blocks: | |||
Attachments: |
Bug 14842: Wrong call to GetBranchItemRule
Bug 14842: Wrong call to GetBranchItemRule [PASSED QA] Bug 14842: Wrong call to GetBranchItemRule |
Description
Jonathan Druart
2015-09-17 08:06:31 UTC
Created attachment 42637 [details] [review] Bug 14842: Wrong call to GetBranchItemRule From bug 7981: GetBranchItemRule expects an itemtype, a scalar. Here $itemtype is a hashref returned by C4::ItemType->get. So $itemtype->{itemtype} should be passed. Created attachment 42803 [details] [review] Bug 14842: Wrong call to GetBranchItemRule From bug 7981: GetBranchItemRule expects an itemtype, a scalar. Here $itemtype is a hashref returned by C4::ItemType->get. So $itemtype->{itemtype} should be passed. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Hi Jonathan or Marcel - can you please add a test plan to this? If I remember correctly you must use an itemtype with a return policy. Whatever the value of the policy, the return branch will always be the homebranch. Created attachment 43035 [details] [review] [PASSED QA] Bug 14842: Wrong call to GetBranchItemRule From bug 7981: GetBranchItemRule expects an itemtype, a scalar. Here $itemtype is a hashref returned by C4::ItemType->get. So $itemtype->{itemtype} should be passed. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Patch pushed to master. Thanks Jonathan! |