Fix crash when saving dailies

This commit is contained in:
Phillip Thelen 2015-11-18 17:07:21 +01:00
parent d0ae3a5b4a
commit 8b88923f9f
2 changed files with 3 additions and 3 deletions

View file

@ -16,7 +16,7 @@ public class Days extends BaseModel {
@Column
@PrimaryKey
@NotNull
String user_id;
String task_id;
@Column
private boolean m, t,w, th,f,s,su;

View file

@ -82,7 +82,7 @@ public class Task extends BaseModel {
@Column
@ForeignKey(references = {@ForeignKeyReference(columnName = "days_id",
columnType = String.class,
foreignColumnName = "user_id")})
foreignColumnName = "task_id")})
public Days repeat;
//TODO: private String lastCompleted;
@ -359,7 +359,7 @@ public class Task extends BaseModel {
checklist = null;
if(repeat != null)
repeat.user_id = user_id;
repeat.task_id = this.id;
super.save();