Able to add n+1 location when only n location levels are defined

Bug #480890 reported by Gavin Treadgold
12
This bug affects 2 people
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

Gavin Treadgold (gt)
Changed in sahana-relief-experiments:
importance: Undecided → Medium
assignee: nobody → Sahana RELIEF Team (sahana-relief-team)
Revision history for this message
ravithb (ravithb) wrote :

Fixed in revision 3

Changed in sahana-relief-experiments:
status: New → Fix Committed
ravithb (ravithb)
Changed in sahana-relief-experiments:
assignee: Sahana RELIEF Team (sahana-relief-team) → ravithb (ravithb)
Revision history for this message
dot dot dot (dotdotdotdeactivated-deactivatedaccount) wrote :

Could we also push this fix to the trunk?

Changed in sahana-agasti:
status: New → Incomplete
milestone: none → 0.9.0
importance: Undecided → Low
importance: Low → Medium
assignee: nobody → ravithb (ravithb)
Changed in sahana-agasti:
status: Incomplete → In Progress
Revision history for this message
IvanX (redhatbg) wrote :

I followed all steps and the bug is doesn't exist anymore in Sahana-Agasti 0.9.0 - no 4th level is being added. Therefore I mark the bug as invalid.

Changed in sahana-agasti:
status: In Progress → Invalid
Revision history for this message
IvanX (redhatbg) wrote :

*the bug doesn't exist anymore, not bug is doesn't exist

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.