From 4f587efbb94ed29fccf445b59c2c14c3ef0323d4 Mon Sep 17 00:00:00 2001 From: JhonSGIzquierdo Date: Fri, 10 May 2024 12:04:39 -0500 Subject: [PATCH] :recycle: refactor(Status Rules): unncesary validation remove --- .../webapp/crp/js/projects/deliverables/deliverableInfo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/marlo-web/src/main/webapp/crp/js/projects/deliverables/deliverableInfo.js b/marlo-web/src/main/webapp/crp/js/projects/deliverables/deliverableInfo.js index 6a68d59ac3..3bc1584ecd 100644 --- a/marlo-web/src/main/webapp/crp/js/projects/deliverables/deliverableInfo.js +++ b/marlo-web/src/main/webapp/crp/js/projects/deliverables/deliverableInfo.js @@ -661,8 +661,9 @@ function validateDeliverableStatus(canChangeStatus) { } } + //console.log("newExpectedYearCondition", newExpectedYear != "-1"); // Validate if the current cycle year is different or equal to the year expected to active On going status - if((expectedYear != currentCycleYear) && (newExpectedYear != "-1") && (isAdmin !== true) ){ + if((expectedYear != currentCycleYear) && (isAdmin !== true) ){ $statuses.find('option[value="2"]').prop("disabled", true); // Disable On-going } else { $statuses.find('option[value="2"]').prop("disabled", false); // Enable On-going