Skip to content

Commit

Permalink
fix collate
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangjiyi committed Apr 11, 2016
1 parent 498d921 commit 01d8b16
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions collated/A0130620B.md
Original file line number Diff line number Diff line change
Expand Up @@ -2202,12 +2202,14 @@ public class Logic {
logger.logAction(COMPONENT_LOGIC, ResponseMessage.MESSAGE_EDITING_TASK + title);

Task tempTask = dataBase.retrieve(new SearchCommand("NAME", title)).get(0);

Boolean deleteResponse = dataBase.delete(tempTask);

tempTask.setReminder(null);
tempTask.setReminder(new Reminder(false, null));

Boolean addResponse = dataBase.add(tempTask);

return addResponse;
return addResponse&&deleteResponse;
}

/**
Expand Down

0 comments on commit 01d8b16

Please sign in to comment.