Bug 32139: Set "update on login" correctly when creating new IdP
authorDavid Cook <dcook@prosentient.com.au>
Wed, 9 Nov 2022 01:59:28 +0000 (01:59 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 9 Nov 2022 16:32:46 +0000 (13:32 -0300)
commit9d3a54f6f64941f27216158685b51a719982379c
treefc9e11ffaf6d6e6646300040205d1e7bea65c9b8
parent2c24682fa09202705fa7b0efe478982bd5e5c009
Bug 32139: Set "update on login" correctly when creating new IdP

This patches allows "Update on Login" to be set to "Yes" when
creating a domain as part of a new Identity Provider.

Test plan:
1) Apply patch
2) koha-plack --reload kohadev
3) Go to http://localhost:8081/cgi-bin/koha/admin/identity_providers.pl
4) Click "New identity provider"
5) Fill in "Code" and "Description" with "test"
6) Click "Add default OAuth configuration"
7) Click "Add default OAUth mapping"
8) Fill in "Domain" with "*"
9) Change "Allow OPAC", "Allow staff", "Auto register", and "Update on login"
to "Yes"
10) Click "Submit"
11) Click "Manage Domains" for your new Identity Provider
12) Note that "Allow opac", "Allow staff", "Auto register", and "Update on login"
are all set to "Yes"

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
admin/identity_providers.pl