From 48d363bf1dfa43508817591dbf1bd65ce28af5be Mon Sep 17 00:00:00 2001
From: Kevin Paxman <kpaxman@uwaterloo.ca>
Date: Mon, 10 Apr 2023 18:27:45 -0400
Subject: [PATCH] ISTWCMS-6274: temporary fix to get tests working again

---
 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 d9847a0e..a0cabd3a 100644
--- a/uw_cfg_common.module
+++ b/uw_cfg_common.module
@@ -1817,7 +1817,7 @@ function uw_cfg_common_field_widget_single_element_link_default_form_alter(array
   if ($field_definition->getName() == 'field_uw_event_map') {
     $element['uri']['#description'] = t('Optional: provide a link to a map with the event location (e.g. https://uwaterloo.ca/map/). This must be an external URL such as https://example.com.');
   }
-  else {
+  elseif ($field_definition->getName() != 'field_gmaps_embedded_url') {
     // Set custom description for all link fields except event map.
     $element['uri']['#description'] = t('Start typing the title of a piece of content to select it. You can also enter an internal path such as /blog or an external URL such as https://example.com. Enter &lt;front&gt; to link to the front page.');
 
-- 
GitLab