Bug 18744

Summary: City selector may select wrong option
Product: Koha Reporter: Kyle M Hall <kyle>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: gmcharlt, kyle.m.hall
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Kyle M Hall 2017-06-07 15:15:32 UTC
The select_city select in the patron editor ( code in member-main-address-style-us.inc ) will select the wrong option of there are multiple options with the same city but different zipcodes. For example, let's say a city has 3 zip codes 16001, 16002, and 16003. If I live in 16003, the chooser will show and have selected the 16001 zip code. This is because the "selected" modifier is set for each option if just the city is a match, ignoring the zipcode, state and country.
Comment 1 Kyle M Hall 2017-06-07 15:16:14 UTC

*** This bug has been marked as a duplicate of bug 15644 ***