Raise an error if trying to copy a step that has been deleted.
This commit is contained in:
parent
d2e3ba6dc5
commit
059041c546
@ -4379,7 +4379,11 @@ BEGIN TRY -- Try Block
|
|||||||
--¦ BEGIN TRANSACTION to make these changes temporary ¦
|
--¦ BEGIN TRANSACTION to make these changes temporary ¦
|
||||||
--+-----------------------------------------------------------------+
|
--+-----------------------------------------------------------------+
|
||||||
BEGIN TRANSACTION
|
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
|
DECLARE @Children AS TABLE
|
||||||
(
|
(
|
||||||
ItemID INT PRIMARY KEY,
|
ItemID INT PRIMARY KEY,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user