[Bug 15535] New: can't call method "default-privacy" on an undefined value /usr/share/koha/lib/c4/members.pm line 753
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15535 Bug ID: 15535 Summary: can't call method "default-privacy" on an undefined value /usr/share/koha/lib/c4/members.pm line 753 Change sponsored?: --- Product: Koha Version: 3.22 Hardware: PC OS: Linux Status: NEW Severity: major Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: irfan.mirza@uettaxila.edu.pk QA Contact: testopia@bugs.koha-community.org When I try to create a patron from opac. A message appears (can't call method "default-privacy" on an undefind value /usr/share/koha/lib/c4/members.pm line 753) on submitting the form after filling it. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15535 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@bugs.koha-c | |ommunity.org --- Comment #1 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Could you please confirm that your system preference PatronSelfRegistrationDefaultCategory is filled with a valid patron category? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15535 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |veron@veron.ch --- Comment #2 from Marc Véron <veron@veron.ch> --- Testing: If PatronSelfRegistrationDefaultCategory is empty, the link for self registration is not displayed in OPAC If PatronSelfRegistrationDefaultCategory is set to a category that does not exist, the error can be triggered. It happens as well if there is a leading space char by mistake. Example with a valid category PT: [PT] -> OK [PT ] -> OK (one or more trailing space chars) [ PT] -> Software error (Leading space char) [ ] -> Software eror (one or more space chars) Maybe we could - validate the syspref field for not having leading spaces or spaces only - give some more explanation in the syspref descriptions for PatronSelfRegistration depending on a correct value for PatronSelfRegistrationDefaultCategory - add a warning on the about page (tab system information) if PatronSelfRegistration is set and PatronSelfRegistrationDefaultCategory is wrong or does not exist - not display the self registration link if PatronSelfRegistration is set and PatronSelfRegistrationDefaultCategory is wrong or does not exist -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15535 Aleisha Amohia <aleishaamohia@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aleishaamohia@hotmail.com --- Comment #3 from Aleisha Amohia <aleishaamohia@hotmail.com> --- (In reply to Marc Véron from comment #2)
- not display the self registration link if PatronSelfRegistration is set and PatronSelfRegistrationDefaultCategory is wrong or does not exist
I think this is probably the best option, as well as updating the descriptions for both system preferences. For example, update PatronSelfRegistration to say that even when set to Allow, the link will not display if PatronSelfRegistrationDefaultCategory is incorrectly set. Then update PatronSelfRegistrationDefaultCategory and give options of common patron categories. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15535 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|3.22 |master Severity|major |normal --- Comment #4 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Lowering the severity as it comes from a configuration issue. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org