Browse Source

id fix in record over view

Julien Clauter 10 years ago
parent
commit
d3ab7b3d8e

+ 2 - 3
src/de/tudarmstadt/informatik/hostage/ui2/fragment/RecordOverviewFragment.java

@@ -3,7 +3,6 @@ package de.tudarmstadt.informatik.hostage.ui2.fragment;
 import android.annotation.SuppressLint;
 import android.app.Fragment;
 import android.app.FragmentManager;
-import android.app.FragmentTransaction;
 import android.content.Context;
 import android.content.Intent;
 import android.os.Bundle;
@@ -274,7 +273,7 @@ public class RecordOverviewFragment extends Fragment implements ChecklistDialog.
 
             item.setId_Mapping(mapping);
 
-            item.setTag(val.getId());
+            item.setTag(val.getAttack_id());
 
             String groupID = this.getGroupValue(val);
 
@@ -327,7 +326,7 @@ public class RecordOverviewFragment extends Fragment implements ChecklistDialog.
                 ExpandableListItem item = (ExpandableListItem)adapter.getChild(i,i2);
 
                 UglyDbHelper dbh = new UglyDbHelper(getBaseContext());
-                Record rec = dbh.getRecord((int) item.getTag());
+                Record rec = dbh.getRecordOfAttackId((int) item.getTag());
                 RecordOverviewFragment.this.pushRecordDetailViewForRecord(rec);
                 return true;
             }