Skip to content

Commit 43ad996

Browse files
committed
WFPREV-777 reset to PROPOSED instead of DRAFT, maintain endorsement/approval depending on what has been unselected
1 parent 40d528c commit 43ad996

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

client/wfprev-war/src/main/angular/src/app/components/edit-project/endorsement-approval/endorsement-approval.component.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export class EndorsementApprovalComponent implements OnChanges, OnInit {
181181
};
182182

183183
// Status logic: (return to PROPOSED if removed and not DRAFT/PROPOSED)
184-
// if reverting to proposed, clear out endorsement/approval fields
184+
// if reverting to proposed, clear out endorsement or approval fields depending on which has been unselected
185185
if (resetToProposedEndorsementRemoved) {
186186
updatedFiscal.planFiscalStatusCode = { planFiscalStatusCode: FiscalStatuses.PROPOSED };
187187
updatedFiscal.endorserName = undefined;
@@ -193,7 +193,9 @@ export class EndorsementApprovalComponent implements OnChanges, OnInit {
193193
updatedFiscal.endorserUserUserid = undefined;
194194
updatedFiscal.endorseApprUpdateUserid = undefined;
195195
updatedFiscal.endorseApprUpdatedTimestamp = undefined;
196-
} else if (resetToProposedApprovalRemoved) {
196+
}
197+
198+
if (resetToProposedApprovalRemoved) {
197199
updatedFiscal.planFiscalStatusCode = { planFiscalStatusCode: FiscalStatuses.PROPOSED };
198200
updatedFiscal.isApprovedInd = false;
199201
updatedFiscal.approvedTimestamp = undefined;

0 commit comments

Comments
 (0)