Merged PR 12625: Fix: Incorrectly creating new training records when canceling a TECN

Fix: Incorrectly creating new training records when canceling a TECN

IDE0100

Updated pipelines to build package .zip for msdeploy.exe

Related work items: #239935
This commit is contained in:
2025-03-11 20:16:18 +01:00
parent 55d3a96228
commit 2119b31764
8 changed files with 162 additions and 38 deletions

View File

@ -1159,8 +1159,6 @@ public class ECNController : PdfViewController {
public ActionResult CancelDocument(int ecnNumber, byte currentStep, int documentType, string ecnTypeString, string comments = "") {
ECN ecn = ecnDMO.GetECN(ecnNumber);
bool lastApproverAndLastStep = false;
if (ecn.IsTECN && ecn.SubmitedDate is not null && currentStep >= 1)
Approve(ecnNumber, currentStep, comments, documentType, ecnTypeString);
int appoverCount = ecnDMO.SubmitForCancellation(ecnNumber, (byte)GlobalVars.WorkFLowStepNumber.Step1, (int)Session[GlobalVars.SESSION_USERID], documentType, ecnTypeString, (int)GlobalVars.TECNExpirationCancellation.Cancellation);
if (appoverCount > 0) {
NotifyApproversForCancellation(ecnNumber, ecn, currentStep, documentType, ecnTypeString);