From dd83491169de98b2c6b4c00835f585aabb039328 Mon Sep 17 00:00:00 2001 From: mschill Date: Fri, 4 Oct 2024 12:46:23 -0400 Subject: [PATCH] B2024-076 Correct Linking / Numbering when utilizing Paste Replace with Enhanced Steps over unlinked steps --- PROMS/VEPROMS User Interface/PROMSFixes.Sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/VEPROMS User Interface/PROMSFixes.Sql b/PROMS/VEPROMS User Interface/PROMSFixes.Sql index 38edb970..6cf3d748 100644 --- a/PROMS/VEPROMS User Interface/PROMSFixes.Sql +++ b/PROMS/VEPROMS User Interface/PROMSFixes.Sql @@ -23798,7 +23798,7 @@ BEGIN TRY -- Try Block --then remove the link from the copy --if original item was not linked, update new items to not be linked DECLARE @xconfig XML = (Select cast(config as xml) xconfig from Contents where ContentID = @ContentID); - IF @xconfig.exist('//Enhanced[1]') = 0 + IF ISNULL(@xconfig.exist('//Enhanced[1]'),0) = 0 BEGIN UPDATE Contents SET Config = dbo.vefn_RemoveEnhanced(Contents.Config) Where ContentID in (Select ContentID FROM vefn_ChildItems(@NewItemID))