Bug 18744 - City selector may select wrong option
Summary: City selector may select wrong option
Status: RESOLVED DUPLICATE of bug 15644
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: master
Hardware: All All
: P5 - low minor (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-07 15:15 UTC by Kyle M Hall
Modified: 2017-06-07 15:16 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***