From feff429e80f043610717ee4404b293fb71827097 Mon Sep 17 00:00:00 2001
From: Liam Morland <lkmorlan@uwaterloo.ca>
Date: Wed, 17 Nov 2021 15:38:18 -0500
Subject: [PATCH] ISTWCMS-4882: Use WebformInterface::CONFIRMATION_INLINE

Correction of 7ebc8dd.
---
 uw_cfg_common.module | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/uw_cfg_common.module b/uw_cfg_common.module
index 12295bf9..0bc3ee95 100644
--- a/uw_cfg_common.module
+++ b/uw_cfg_common.module
@@ -380,7 +380,7 @@ function uw_cfg_common_webform_create(WebformInterface $webform) {
 
   // On admin/structure/webform/manage/FORM/settings/confirmation, default
   // "Confirmation type" to "inline".
-  $webform->setSetting('confirmation_type', 'inline');
+  $webform->setSetting('confirmation_type', WebformInterface::CONFIRMATION_INLINE);
 
   // Set so that uw_cfg_common_webform_build_access_denied_alter() will run.
   // This value is tested for in Webform::preRenderWebformElement().
-- 
GitLab