From a3c9370c9ad3a6c34ed6afe0fb2cf21b83827cab Mon Sep 17 00:00:00 2001 From: Jon Clausen Date: Tue, 25 Feb 2025 10:18:44 -0500 Subject: [PATCH] Fix for Adobe Elvis Implementation on Metadata object For some reason, on all Adobe engines, the use of the elvis on the metadata object throws `mdLabels` is undefined on 991 --- system/BaseSpec.cfc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/BaseSpec.cfc b/system/BaseSpec.cfc index 42a92b1c..d175a783 100644 --- a/system/BaseSpec.cfc +++ b/system/BaseSpec.cfc @@ -987,7 +987,7 @@ component { // init consolidated spec labels var consolidatedLabels = arguments.spec.labels; var md = getMetadata( this ); - var mdLabels = md.labels ?: ""; + var mdLabels = structKeyExists( md, "labels" ) ? md.labels : ""; consolidatedLabels.append( listToArray( mdLabels ), true ); // Build labels from nested suites, so suites inherit from parent suite labels var parentSuite = arguments.suite;