<BUG>layoutRevision.setHead(false);}</BUG><CONTEXT>layoutRevision.setStatusDate(new Date());if (status == WorkflowConstants.STATUS_APPROVED) {layoutRevision.setHead(true);}else {<extra_id_0>layoutRevisionPersistence.update(layoutRevision);if (status == WorkflowConstants.STATUS_APPROVED) {List<LayoutRevision> layoutRevisions =</CONTEXT>
layoutRevision.setMajor(false);