Skip to content

Commit

Permalink
Merge pull request #62 from CS2103AUG2016-W10-C1/feat/crud/edit-retai…
Browse files Browse the repository at this point in the history
…ns-tags

Resolve edit removes tags issue
  • Loading branch information
inaba1231 committed Oct 19, 2016
2 parents 8916c57 + 99aa266 commit 4027682
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/seedu/taskman/logic/parser/CommandParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,15 +231,15 @@ private Command prepareEdit(String args) {
int index = Integer.parseInt(indexString);

try {
Set<String> tags = getTagsFromArgs(matcher.group("tagArguments"));
return new EditCommand(
index,
matcher.group("title"),
matcher.group("deadline"),
matcher.group("status"),
matcher.group("schedule"),
matcher.group("frequency"),
getTagsFromArgs(matcher.group("tagArguments"))
);
tags.isEmpty() ? null : tags);
} catch (IllegalValueException ive) {
return new IncorrectCommand(ive.getMessage());
}
Expand Down

0 comments on commit 4027682

Please sign in to comment.