From 059041c546502e5e9aa7c363660891d5a1de627e Mon Sep 17 00:00:00 2001 From: Rich Date: Tue, 5 Aug 2014 19:00:42 +0000 Subject: [PATCH] Raise an error if trying to copy a step that has been deleted. --- PROMS/DataLoader/PROMSFixes.Sql | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PROMS/DataLoader/PROMSFixes.Sql b/PROMS/DataLoader/PROMSFixes.Sql index 0757556b..f2a005dc 100644 --- a/PROMS/DataLoader/PROMSFixes.Sql +++ b/PROMS/DataLoader/PROMSFixes.Sql @@ -4379,7 +4379,11 @@ BEGIN TRY -- Try Block --¦ BEGIN TRANSACTION to make these changes temporary ¦ --+-----------------------------------------------------------------+ BEGIN TRANSACTION - + if exists (select * from tblitems where itemid = @StartItemID and DeleteStatus !=0) + BEGIN + RAISERROR ('###Cannot Paste Step###This step has been deleted',16,1) + RETURN + END DECLARE @Children AS TABLE ( ItemID INT PRIMARY KEY,