From 04049659e8f7fc145091fa05b79545fc8d42932a Mon Sep 17 00:00:00 2001 From: justinlengch Date: Fri, 22 Mar 2024 00:22:38 +0800 Subject: [PATCH] Fix adding remark to a Student bug --- build.gradle | 2 +- src/main/java/seedu/address/logic/commands/RemarkCommand.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index a2951cc709e..3186a0031aa 100644 --- a/build.gradle +++ b/build.gradle @@ -66,7 +66,7 @@ dependencies { } shadowJar { - archiveFileName = 'addressbook.jar' + archiveFileName = 'tutortrack.jar' } defaultTasks 'clean', 'test' diff --git a/src/main/java/seedu/address/logic/commands/RemarkCommand.java b/src/main/java/seedu/address/logic/commands/RemarkCommand.java index 9072b82802c..3ad3d663e9b 100644 --- a/src/main/java/seedu/address/logic/commands/RemarkCommand.java +++ b/src/main/java/seedu/address/logic/commands/RemarkCommand.java @@ -51,7 +51,7 @@ public CommandResult execute(Model model) throws CommandException { Person personToEdit = lastShownList.get(index.getZeroBased()); Person editedPerson = new Person(personToEdit.getName(), personToEdit.getPhone(), personToEdit.getEmail(), personToEdit.getAddress(), personToEdit.getSubject(), - personToEdit.getRemark(), personToEdit.getLessons()); + this.remark, personToEdit.getLessons()); model.setPerson(personToEdit, editedPerson); model.updateFilteredPersonList(PREDICATE_SHOW_ALL_PERSONS);