Bug 28936

Summary: Sort1 and Sort2 should be included in BorrowerUnwantedField and related sysprefs
Product: Koha Reporter: Andrew Fuerste-Henry <andrew>
Component: System AdministrationAssignee: Lucas Gass (lukeg) <lucas>
Status: CLOSED FIXED QA Contact: Joonas Kylmälä <joonas.kylmala>
Severity: normal    
Priority: P5 - low CC: dcook, emmi.takkinen, fridolin.somers, gmcharlt, hagud, joonas.kylmala, kyle, lucas, victor
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28392
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
21.11.00,21.05.04,20.11.10
Circulation function:
Bug Depends on: 22844    
Bug Blocks:    
Attachments: Bug 28936: Add sort1/sort2 to borrowers.json
Bug 28936: Add sort1/sort2 to borrowers.json
Bug 28936: Add sort1/sort2 to borrowers.json

Description Andrew Fuerste-Henry 2021-09-01 12:51:15 UTC
Sort1 and Sort2 are not included in the checkboxes for BorrowerUnwatedField, PatronSelfRegistrationBorrowerUnwantedField, PatronSelfModificationBorrowerUnwantedField, BorrowerMandatoryField, and PatronSelfRegistrationBorrowerMandatoryField. We should include them as options on these sysprefs.
Comment 1 Lucas Gass (lukeg) 2021-09-01 16:26:32 UTC
Created attachment 124413 [details] [review]
Bug 28936: Add sort1/sort2 to borrowers.json

To Test:
1. Check the BorrowerMandatoryField and BorrowerUnwantedField system preferences, sort1 and sort2 cannot be hidden or required
2. Apply patch
3. Check the BorrowerMandatoryField and BorrowerUnwantedField system preferences again, you should see sort1 and sort2
4. Since sort1 and sort2 are now added to borrowers.json we must also check the system preferences PatronQuickAddFields & PatronDuplicateMatchingAddFields
5. They should both now include sort1 and sort2, check to make sure they work with these two system preferences
6. Look at the system preferences PatronSelfRegistrationBorrowerMandatoryField, PatronSelfRegistrationBorrowerUnwantedField, and PatronSelfModificationBorrowerUnwantedField
7. sort1 and sort2 should be disabled in these OPAC system preferences

This patch does not attempt to add sort1 or sort2 to the self reg or borrower mod pages. If they should be added, which I am not sure they should, we should do so in a seperate bug
Comment 2 Joonas Kylmälä 2021-09-05 13:54:04 UTC
Created attachment 124516 [details] [review]
Bug 28936: Add sort1/sort2 to borrowers.json

To Test:
1. Check the BorrowerMandatoryField and BorrowerUnwantedField system preferences, sort1 and sort2 cannot be hidden or required
2. Apply patch
3. Check the BorrowerMandatoryField and BorrowerUnwantedField system preferences again, you should see sort1 and sort2
4. Since sort1 and sort2 are now added to borrowers.json we must also check the system preferences PatronQuickAddFields & PatronDuplicateMatchingAddFields
5. They should both now include sort1 and sort2, check to make sure they work with these two system preferences
6. Look at the system preferences PatronSelfRegistrationBorrowerMandatoryField, PatronSelfRegistrationBorrowerUnwantedField, and PatronSelfModificationBorrowerUnwantedField
7. sort1 and sort2 should be disabled in these OPAC system preferences

This patch does not attempt to add sort1 or sort2 to the self reg or borrower mod pages. If they should be added, which I am not sure they should, we should do so in a seperate bug

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Comment 3 Emmi Takkinen 2021-09-06 06:02:52 UTC
Created attachment 124522 [details] [review]
Bug 28936: Add sort1/sort2 to borrowers.json

To Test:
1. Check the BorrowerMandatoryField and BorrowerUnwantedField system preferences, sort1 and sort2 cannot be hidden or required
2. Apply patch
3. Check the BorrowerMandatoryField and BorrowerUnwantedField system preferences again, you should see sort1 and sort2
4. Since sort1 and sort2 are now added to borrowers.json we must also check the system preferences PatronQuickAddFields & PatronDuplicateMatchingAddFields
5. They should both now include sort1 and sort2, check to make sure they work with these two system preferences
6. Look at the system preferences PatronSelfRegistrationBorrowerMandatoryField, PatronSelfRegistrationBorrowerUnwantedField, and PatronSelfModificationBorrowerUnwantedField
7. sort1 and sort2 should be disabled in these OPAC system preferences

This patch does not attempt to add sort1 or sort2 to the self reg or borrower mod pages. If they should be added, which I am not sure they should, we should do so in a seperate bug

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Emmi Takkinen <emmi.takkinen@koha-suomi.fi>
Comment 4 Joonas Kylmälä 2021-09-06 07:57:07 UTC
Passing QA.
Comment 5 Jonathan Druart 2021-09-09 09:01:10 UTC
Pushed to master for 21.11, thanks to everybody involved!
Comment 6 Kyle M Hall (khall) 2021-09-10 12:16:17 UTC
Pushed to 21.05.x for 21.05.04
Comment 7 Fridolin Somers 2021-09-16 07:56:37 UTC
Pushed to 20.11.x for 20.11.10
Comment 8 Victor Grousset/tuxayo 2021-09-20 13:45:35 UTC
Not backported to oldoldstable (20.05.x). Feel free to ask if it's needed.
Comment 9 Katrin Fischer 2021-11-02 21:30:27 UTC
*** Bug 29297 has been marked as a duplicate of this bug. ***