[Bug 14658] New: Split PatronSelfRegistrationBorrowerUnwantedField into two preferences for creating and editing
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 Bug ID: 14658 Summary: Split PatronSelfRegistrationBorrowerUnwantedField into two preferences for creating and editing Change sponsored?: Sponsored Product: Koha Version: master Hardware: All OS: All Status: ASSIGNED Severity: enhancement Priority: P5 - low Component: OPAC Assignee: jweaver@bywatersolutions.com Reporter: jweaver@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 Jesse Weaver <jweaver@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |14659 Referenced Bugs: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14659 [Bug 14659] Allow patrons to enter card number and patron category on OPAC registration page -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 Jesse Weaver <jweaver@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 --- Comment #1 from Jesse Weaver <jweaver@bywatersolutions.com> --- Created attachment 41643 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41643&action=edit Bug 14658 - Split PatronSelfRegistrationBorrowerUnwantedField into two preferences for creating and editing Test plan: 1) Make sure there is at least one field in PatronSelfRegistrationBorrowerUnwantedField. 2) Apply patch, and update database. 3) Check to make sure that the new system preference PatronSelfModificationBorrowerUnwantedField has the same value as PatronSelfRegistrationBorrowerUnwantedField. 4) Verify that the same fields are hidden for self-registering a new borrower and edting a new one (both on the OPAC). 5) Change PatronSelfModificationBorrowerUnwantedField, and verify that the two preferences correctly apply to editing vs. creating. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 Kyle M Hall <kyle.m.hall@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Small patch CC| |kyle.m.hall@gmail.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #41643|0 |1 is obsolete| | --- Comment #2 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 42145 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=42145&action=edit Bug 14658 - Split PatronSelfRegistrationBorrowerUnwantedField into two preferences for creating and editing Tested and signed off, still needs sign-off from non-ByWater community member. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 Jesse Weaver <jweaver@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 Jesse Weaver <jweaver@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #42145|0 |1 is obsolete| | --- Comment #3 from Jesse Weaver <jweaver@bywatersolutions.com> --- Created attachment 43041 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=43041&action=edit Bug 14658 - Split PatronSelfRegistrationBorrowerUnwantedField into two preferences for creating and editing Test plan: 1) Make sure there is at least one field in PatronSelfRegistrationBorrowerUnwantedField. 2) Apply patch, and update database. 3) Check to make sure that the new system preference PatronSelfModificationBorrowerUnwantedField has the same value as PatronSelfRegistrationBorrowerUnwantedField. 4) Verify that the same fields are hidden for self-registering a new borrower and edting a new one (both on the OPAC). 5) Change PatronSelfModificationBorrowerUnwantedField, and verify that the two preferences correctly apply to editing vs. creating. Signed-off-by: Michael Sauers <msauers@dospace.org> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 --- Comment #4 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Comment on attachment 43041 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=43041 Bug 14658 - Split PatronSelfRegistrationBorrowerUnwantedField into two preferences for creating and editing Review of attachment 43041: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=14658&attachment=43041) ----------------------------------------------------------------- ::: opac/opac-memberentry.pl @@ +244,4 @@
my %hidden_fields;
my $BorrowerUnwantedField = + C4::Context->preference( "PatronSelf" . ucfirst($action) . "BorrowerUnwantedField" );
As a grep fan, I would prefer to see the entire name of the prefs. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de Status|Signed Off |Failed QA --- Comment #5 from Katrin Fischer <katrin.fischer@bsz-bw.de> ---
::: opac/opac-memberentry.pl @@ +244,4 @@
my %hidden_fields;
my $BorrowerUnwantedField = + C4::Context->preference( "PatronSelf" . ucfirst($action) . "BorrowerUnwantedField" );
As a grep fan, I would prefer to see the entire name of the prefs.
+1 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 Heather Braum <hbraum@nekls.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hbraum@nekls.org -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 Jesse Weaver <jweaver@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 --- Comment #6 from Jesse Weaver <jweaver@bywatersolutions.com> --- Created attachment 45847 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=45847&action=edit Bug 14658 - (QA followup) make it easier to grep for these syspref names -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@bugs.koha-c | |ommunity.org --- Comment #7 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Should not we display the value (readonly) if it exists? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 --- Comment #8 from Jesse Weaver <jweaver@bywatersolutions.com> --- (In reply to Jonathan Druart from comment #7)
Should not we display the value (readonly) if it exists?
While this could be useful, I think it'd be surprising behavior given how the syspref currently works. Also, the bugs chaining off of this to allow patrons to enter their category or home library show up as readonly for existing patrons anyway (as you wouldn't want a patron to randomly change their library/category). -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #43041|0 |1 is obsolete| | Attachment #45847|0 |1 is obsolete| | --- Comment #9 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 46074 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=46074&action=edit Bug 14658 - Split PatronSelfRegistrationBorrowerUnwantedField into two preferences for creating and editing Test plan: 1) Make sure there is at least one field in PatronSelfRegistrationBorrowerUnwantedField. 2) Apply patch, and update database. 3) Check to make sure that the new system preference PatronSelfModificationBorrowerUnwantedField has the same value as PatronSelfRegistrationBorrowerUnwantedField. 4) Verify that the same fields are hidden for self-registering a new borrower and edting a new one (both on the OPAC). 5) Change PatronSelfModificationBorrowerUnwantedField, and verify that the two preferences correctly apply to editing vs. creating. Signed-off-by: Michael Sauers <msauers@dospace.org> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 --- Comment #10 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 46075 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=46075&action=edit Bug 14658 - (QA followup) make it easier to grep for these syspref names Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Patch doesn't apply CC| |kyle@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 Jesse Weaver <jweaver@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Passed QA -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 Jesse Weaver <jweaver@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #46074|0 |1 is obsolete| | --- Comment #11 from Jesse Weaver <jweaver@bywatersolutions.com> --- Created attachment 46235 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=46235&action=edit Bug 14658 - Split PatronSelfRegistrationBorrowerUnwantedField into two preferences for creating and editing Test plan: 1) Make sure there is at least one field in PatronSelfRegistrationBorrowerUnwantedField. 2) Apply patch, and update database. 3) Check to make sure that the new system preference PatronSelfModificationBorrowerUnwantedField has the same value as PatronSelfRegistrationBorrowerUnwantedField. 4) Verify that the same fields are hidden for self-registering a new borrower and edting a new one (both on the OPAC). 5) Change PatronSelfModificationBorrowerUnwantedField, and verify that the two preferences correctly apply to editing vs. creating. Signed-off-by: Michael Sauers <msauers@dospace.org> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 Jesse Weaver <jweaver@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #46075|0 |1 is obsolete| | --- Comment #12 from Jesse Weaver <jweaver@bywatersolutions.com> --- Created attachment 46236 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=46236&action=edit Bug 14658 - (QA followup) make it easier to grep for these syspref names -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 Jesse Weaver <jweaver@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #46235|0 |1 is obsolete| | --- Comment #13 from Jesse Weaver <jweaver@bywatersolutions.com> --- Created attachment 46237 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=46237&action=edit Bug 14658 - Split PatronSelfRegistrationBorrowerUnwantedField into two preferences for creating and editing Test plan: 1) Make sure there is at least one field in PatronSelfRegistrationBorrowerUnwantedField. 2) Apply patch, and update database. 3) Check to make sure that the new system preference PatronSelfModificationBorrowerUnwantedField has the same value as PatronSelfRegistrationBorrowerUnwantedField. 4) Verify that the same fields are hidden for self-registering a new borrower and edting a new one (both on the OPAC). 5) Change PatronSelfModificationBorrowerUnwantedField, and verify that the two preferences correctly apply to editing vs. creating. Signed-off-by: Michael Sauers <msauers@dospace.org> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 Jesse Weaver <jweaver@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #46236|0 |1 is obsolete| | --- Comment #14 from Jesse Weaver <jweaver@bywatersolutions.com> --- Created attachment 46238 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=46238&action=edit Bug 14658 - (QA followup) make it easier to grep for these syspref names Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 --- Comment #15 from Jesse Weaver <jweaver@bywatersolutions.com> --- Sorry for spam, accidentally obliterated Joubu's signoffs. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 Jesse Weaver <jweaver@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 --- Comment #16 from Jesse Weaver <jweaver@bywatersolutions.com> --- Created attachment 46352 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=46352&action=edit Bug 14658: (followup) fix issue with list context on DBIC call While working on bug 14659, it was discovered that the call to ...->guarantor in list context will cause the hash to be misaligned (thus causing hidden => ... to not actually be sent to the template). -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 --- Comment #17 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Jesse Weaver from comment #16)
Created attachment 46352 [details] [review] Bug 14658: (followup) fix issue with list context on DBIC call
While working on bug 14659, it was discovered that the call to ...->guarantor in list context will cause the hash to be misaligned (thus causing hidden => ... to not actually be sent to the template).
Could you move that to another bug report, to make it backportable to stable branches? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 --- Comment #18 from Jesse Weaver <jweaver@bywatersolutions.com> --- (In reply to Jonathan Druart from comment #17)
(In reply to Jesse Weaver from comment #16)
Created attachment 46352 [details] [review] [review] Bug 14658: (followup) fix issue with list context on DBIC call
While working on bug 14659, it was discovered that the call to ...->guarantor in list context will cause the hash to be misaligned (thus causing hidden => ... to not actually be sent to the template).
Could you move that to another bug report, to make it backportable to stable branches?
I could, but this error doesn't really cause any issues unless you add something else to that $template->param call, which is only likely from an another enhancement. Not much benefit from backporting, in my opinion. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 --- Comment #19 from Owen Leonard <oleonard@myacpl.org> --- (In reply to Jesse Weaver from comment #16)
Created attachment 46352 [details] [review] Bug 14658: (followup) fix issue with list context on DBIC call
Is this bug set to 'needs signoff' because of this follow-up? If so, is there a test plan for the follow-up? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14658 --- Comment #20 from Jesse Weaver <jweaver@bywatersolutions.com> --- (In reply to Owen Leonard from comment #19)
(In reply to Jesse Weaver from comment #16)
Created attachment 46352 [details] [review] [review] Bug 14658: (followup) fix issue with list context on DBIC call
Is this bug set to 'needs signoff' because of this follow-up? If so, is there a test plan for the follow-up?
The followup was introduced to fix a bug caused by a change in master since this patch was originally submitted; the test plan should be the same as before. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org