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>
This commit is contained in:
David Cook 2022-11-09 01:59:28 +00:00 committed by Tomas Cohen Arazi
parent 2c24682fa0
commit 9d3a54f6f6
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ if ( !$domain_ops && $op eq 'add' ) {
my $default_category_id = $input->param('default_category_id');
my $default_library_id = $input->param('default_library_id');
my $domain = $input->param('domain');
my $update_on_auth = $input->param('update_on_$update_on_auth');
my $update_on_auth = $input->param('update_on_auth');
try {
Koha::Database->new->schema->txn_do(