protected AbstractEditView<PreventiveActionModel, PreventiveAction> getEditView(
AbstractViewHandler<PreventiveAction, PreventiveActionModel> handler,
PreventiveAction object, boolean searching) {
if (object.getPreventiveActionId() == null) {
PreventiveActionComment preventiveActionComment = new PreventiveActionComment(
null, login.getApplicationUser().getUserName(), Util
.getCurrentDate(), "Opprettet",
// 1,
object, null);
preventiveActionComment.addCommentType(CommentTypeUtil
.getCommentType("Opprettet"));
object.addPreventiveActionComment(preventiveActionComment);
} else {
overviewManager.lazyLoad(object, new LazyLoadEnum[][] { {
LazyLoadEnum.PREVENTIVE_ACTION_COMMENTS,