Raise an error if trying to copy a step that has been deleted.

This commit is contained in:
Rich 2014-08-05 19:00:42 +00:00
parent d2e3ba6dc5
commit 059041c546

View File

@ -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,