Skip to content

Commit

Permalink
Fixed bug where adding tags only will cause duplicate error
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Ong authored and Kevin Ong committed Nov 5, 2016
1 parent c3475e0 commit 54bda28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public void edit(Activity task, Activity newTask) throws TaskNotFoundException,
assert task != null;
assert newTask != null;

if (contains(newTask)) {
if (contains(newTask) && (task.getTags().equals(newTask.getTags()))) {
throw new DuplicateTaskException();
}

Expand Down

0 comments on commit 54bda28

Please sign in to comment.