mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-21 13:19:02 +00:00
Fix crash when saving dailies
This commit is contained in:
parent
d0ae3a5b4a
commit
8b88923f9f
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue