Bug 22136

Summary: Import patrons notes hides a note because the syspref isn't referenced correctly
Product: Koha Reporter: Aleisha Amohia <aleisha>
Component: ToolsAssignee: Ethan <ethan.amohia>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: fridolin.somers, jesse, katrin.fischer, martin.renvoize, nick, pierre-marc.thibault
Version: unspecifiedKeywords: Academy
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 12598    
Bug Blocks:    
Attachments: Bug 22136: Added 'ExtendedPatronAttributes' notes to 'Import Patrons' notes.
Bug 22136: Added 'ExtendedPatronAttributes' notes to 'Import Patrons' notes.
Bug 22136: Added 'ExtendedPatronAttributes' notes to 'Import Patrons' notes.
Bug 22136: Added 'ExtendedPatronAttributes' notes to 'Import Patrons' notes.

Description Aleisha Amohia 2019-01-15 23:07:00 UTC
To reproduce:

Go to Tools -> Import patrons
Look under Notes
There should be NO note talking about the patron_attributes field.
Go to Administration -> system preferences
Enable the ExtendedPatronAttributes syspref
Go back to Tools -> Import patrons
Notice the note still hasn't shown up, but it is meant to.

This is because it is not checking the system preference correctly
The code says [% IF ( ExtendedPatronAttributes ) %]
but it should say [% IF ( Koha.Preference('ExtendedPatronAttributes') ) %]
Comment 1 Ethan 2019-01-16 04:04:19 UTC
Created attachment 84042 [details] [review]
Bug 22136: Added 'ExtendedPatronAttributes' notes to 'Import Patrons' notes.
Comment 2 Katrin Fischer 2019-01-17 06:51:03 UTC
Hi Ethan, please take another look here, I tihnk something has gone wrong:

-                [% IF ( Koha.Preference('ExtendedPatronAttributes') == 1 ) %]
+                [% IF ( Koha.Preference(''tronAttributes) == 1 ) %]
Comment 3 Ethan 2019-01-17 20:15:51 UTC
Created attachment 84156 [details] [review]
Bug 22136: Added 'ExtendedPatronAttributes' notes to 'Import Patrons' notes.

Fixed ExtendedPatronAttributes typo.
Comment 4 Pierre-Marc Thibault 2019-01-18 19:54:10 UTC
Created attachment 84217 [details] [review]
Bug 22136: Added 'ExtendedPatronAttributes' notes to 'Import Patrons' notes.

Fixed ExtendedPatronAttributes typo.

Signed-off-by: Pierre-Marc Thibault <pierre-marc.thibault@inLibro.com>
Comment 5 Katrin Fischer 2019-01-20 11:55:15 UTC
Created attachment 84242 [details] [review]
Bug 22136: Added 'ExtendedPatronAttributes' notes to 'Import Patrons' notes.

Fixed ExtendedPatronAttributes typo.

Signed-off-by: Pierre-Marc Thibault <pierre-marc.thibault@inLibro.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 6 Nick Clemens 2019-01-28 16:14:09 UTC
Awesome work all!

Pushed to master for 19.05
Comment 7 Martin Renvoize 2019-02-01 14:52:11 UTC
Pushed to 18.11.x for 18.11.03
Comment 8 Jesse Maseto 2019-02-06 18:06:35 UTC
Pushed to 18.05.x for 18.05.09
Comment 9 Fridolin Somers 2019-02-12 15:44:00 UTC
Depends on Bug 12598 not in 17.11.x