Summary: | Brackets missing for branches for patron attribute types | ||
---|---|---|---|
Product: | Koha | Reporter: | Brendan Gallagher <brendan> |
Component: | System Administration | Assignee: | Bugs List <koha-bugs> |
Status: | CLOSED WORKSFORME | QA Contact: | |
Severity: | normal | ||
Priority: | P5 - low | CC: | christophe.croullebois, colin.campbell, gmcharlt, jonathan.druart, paul.poulain |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: |
proposed patch
bug 9835: Lack of brackets in patron-attr-types.pl line 300 |
Description
Brendan Gallagher
2013-03-18 13:47:59 UTC
Created attachment 16245 [details] [review] proposed patch Its a typo all right but fetch can also return undef shouldn't we also check for that?? Does this cause a problem which can be reproduced? Can the outcome be tested? Patch tested with a sandbox, by Cedric Vita <cedric.vita@dracenie.com> Created attachment 16585 [details] [review] bug 9835: Lack of brackets in patron-attr-types.pl line 300 produces a warning 'Can't call method "branches" on an undefined value'... Signed-off-by: Cedric Vita <cedric.vita@dracenie.com> I have seen the error on Brendan's installation, but can't reproduce right now - maybe someone else can? I cannot reproduced. And I don't understand the patch. C4::Members::AttributeTypes has a branches method and it is the method we want to call. I would prefer: $attr->{branches} = $attr_type->branches if defined $attr_type; But at this place, $attr_type should be defined. Could you produce a test plan to reproduce the issue please? I can only repeat this on my install and we have not been able to repeat this anywhere else - we have tried four other installs and I have tried other installs on other boxes. I think we can just disregard this bug until another person reports this problem. -Brendan |