Skip to content

Commit

Permalink
Removing victim_status_id validation and fixing PerpetratorShow view. C…
Browse files Browse the repository at this point in the history
…loses #134
  • Loading branch information
juarlex committed May 16, 2012
1 parent 09c5b49 commit 86a1f85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Models/Victim.cs
Expand Up @@ -17,7 +17,7 @@ public class Victim : ActiveRecordValidationBase<Victim>
public Person Person { get; set; }
[BelongsTo("act_id"), ValidateNonEmpty]
public Act Act { get; set; }
[BelongsTo("victim_status_id"), ValidateNonEmpty]
[BelongsTo("victim_status_id")]
public VictimStatus VictimStatus { get; set; }

[Property("characteristics")]
Expand Down
1 change: 1 addition & 0 deletions Views/Perpetrator/PerpetratorShow.cs
Expand Up @@ -87,6 +87,7 @@ protected virtual void OnSave (object sender, System.EventArgs e)

if (perpetrator.IsValid()) {
if (newRow) {
perpetrator.Victim.Perpetrators.Remove (Perpetrator);
perpetrator.Victim.Perpetrators.Add (Perpetrator);
}

Expand Down

0 comments on commit 86a1f85

Please sign in to comment.