Added check for external transitions that point to just a procedure title (not a section or step) when we are trying to delete a procedure.

This commit is contained in:
John Jenko 2015-03-09 16:32:48 +00:00
parent c65d3e8cdf
commit b57e0b59d6

View File

@ -8899,7 +8899,7 @@ BEGIN TRY -- Try Block
)
SET NOCOUNT ON
SELECT @ContentID = ContentID, @PreviousItemID = PreviousID FROM Items WHERE ItemID = @ItemID
SELECT @NextItemID = ItemID FROM Items WHERE PreviousID = @ItemID
SELECT @NextItemID = ItemID FROM Items ii join Contents cc on cc.contentid = ii.contentid WHERE PreviousID = @ItemID and cc.type > 0
SELECT @ExternalCount = count(*) FROM vefn_FindExternalTransitions(@ItemID) where rangeid = toid or toid = @ItemID
SELECT @ExternalChildCount = count(*) FROM vefn_FindExternalChildTransitions(@ItemID)
SET @Path = [dbo].[ve_GetShortPath](@ItemID)