Skip to content

Commit

Permalink
Closes issue #897 - Editing a pre-existing incident as a member creat…
Browse files Browse the repository at this point in the history
…es a duplicate incident

I know it doesn't look like much, but that little "$id" is pretty darn important.
  • Loading branch information
jetherton committed Oct 22, 2012
1 parent 419caa0 commit 0393870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/members/reports.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public function edit($id = FALSE, $saved = FALSE)
reports::save_location($post, $location);

// STEP 2: SAVE INCIDENT
$incident = new Incident_Model();
$incident = new Incident_Model($id);
reports::save_report($post, $incident, $location->id);

// STEP 2b: SAVE INCIDENT GEOMETRIES
Expand Down

0 comments on commit 0393870

Please sign in to comment.