Allow supervisors to write a note associated with their projects #8
|
@ -24,6 +24,7 @@ import se.su.dsv.scipro.project.ProjectNoteService;
|
|||
import se.su.dsv.scipro.system.User;
|
||||
|
||||
import java.time.LocalTime;
|
||||
import java.time.temporal.ChronoUnit;
|
||||
|
||||
public class ProjectNoteColumn extends AbstractExportableColumn<Project, String> {
|
||||
@Inject
|
||||
|
@ -89,7 +90,7 @@ public class ProjectNoteColumn extends AbstractExportableColumn<Project, String>
|
|||
user.getObject(),
|
||||
note.getObject()
|
||||
);
|
||||
success("Note saved at " + LocalTime.now());
|
||||
success("Note saved at " + LocalTime.now().truncatedTo(ChronoUnit.SECONDS));
|
||||
}
|
||||
};
|
||||
add(form);
|
||||
|
|
Loading…
Reference in New Issue
Block a user