When using the quick add patron option in koha 19.11 : If a library has cities and towns pre-populated in a drop down list and has added this field into the quick add patron form this information will not copy into the full patron form after saving. This was fixed in bug 18569 for 17.11 but is not working in 19.11.
Confirmed in master. Certainly broken by commit 4605d76a73f9b13ba3b0259e3f480fb396051309 Bug 3766: Cities/Towns only on one address
Created attachment 115500 [details] [review] Bug 26436: fix city/town pulldown This patch uses a different selector to target the inputs. 1. add some cities to /cgi-bin/koha/admin/cities.pl with city, state, zipcode, and country defined 2. On PatronQuickAddFields select all, this way we can test all the alternate city selects 3. Go to quick add patron, and select a city from the dropdown, the city/state/zip/country doesn't populate (Alternate address city doesnt work either) 4. Apply patch 5. Do 1 - 3 again, it should work 6. Try the regular patron form, make sure all city/town dropdowns still work
Created attachment 115552 [details] [review] Bug 26436: fix city/town pulldown This patch uses a different selector to target the inputs. 1. add some cities to /cgi-bin/koha/admin/cities.pl with city, state, zipcode, and country defined 2. On PatronQuickAddFields select all, this way we can test all the alternate city selects 3. Go to quick add patron, and select a city from the dropdown, the city/state/zip/country doesn't populate (Alternate address city doesnt work either) 4. Apply patch 5. Do 1 - 3 again, it should work 6. Try the regular patron form, make sure all city/town dropdowns still work Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
It doesn't populate the City field for the alternate contact address. Probably because the input's name is "altcontactaddress3" and thus doesn't end with "city". Can it be fixed ? Other than that the patch works well.
Created attachment 116852 [details] [review] Bug 26436: fix city/town pulldown in all cases This patch uses a different selector to target the inputs and accounts for the fact that altcontactcity is actually called altcontactaddress3 1. add some cities to /cgi-bin/koha/admin/cities.pl with city, state, zipcode, and country defined 2. On PatronQuickAddFields select all, this way we can test all the alternate city selects 3. Go to quick add patron, and select a city from the dropdown, the city/state/zip/country doesn't populate (Alternate address city doesnt work either) 4. Apply patch 5. Do 1 - 3 again, it should work 6. Try the regular patron form, make sure all city/town dropdowns still work
(In reply to Julian Maurice from comment #4) > It doesn't populate the City field for the alternate contact address. > Probably because the input's name is "altcontactaddress3" and thus doesn't > end with "city". > Can it be fixed ? > Other than that the patch works well. Good catch. Is my new patch too much of a work around now? It's too bad that the alternate contact city field is borrowers.altcontactaddress3 in the database while state, zipcode, and country are altcontactstate, altcontactzipcode, and altcontactcountry. But fixing that seems to be out of the scope of this bug.