Able to add n+1 location when only n location levels are defined
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Sahana Agasti |
Invalid
|
Medium
|
ravithb | ||
Sahana RELIEF Experiments |
Fix Committed
|
Medium
|
ravithb |
Bug Description
1. Go to Admin > Location Hierarchy > Location Terminology
1a. Add 'State'
1b. Add 'County'
1c. Add 'City'
2. Go to Admin > Location Hierarchy > Add New Location
2a. Deselect all, set location to California, and hit submit to add a State
2b. Select State=California, set location to Monterey County and hit submit to add a County
2c. Select State=California and County=Monterey and set location to San Lucas and hit submit to add a City
3. Select State=California, County=Monterey, and City=San Lucas, set location to TestCity
The system will add TestCity as a 4th level (opt_location_type = 4). This is a bug as it should not be possible to enter a 4th level location if only three levels of locations are defined. It should only be possible to add locations to those location levels that are already defined.
Related branches
Changed in sahana-relief-experiments: | |
importance: | Undecided → Medium |
assignee: | nobody → Sahana RELIEF Team (sahana-relief-team) |
Changed in sahana-relief-experiments: | |
assignee: | Sahana RELIEF Team (sahana-relief-team) → ravithb (ravithb) |
Changed in sahana-agasti: | |
status: | Incomplete → In Progress |
Fixed in revision 3