From d3849f58fabba66c01b30ef17406ac8dab8b2615 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Fri, 23 Sep 2016 13:39:01 -0400
Subject: [PATCH] Workaround for embedded comments without ReCaptcha.

---
 themes/bootstrap3/templates/RecordTab/usercomments.phtml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/themes/bootstrap3/templates/RecordTab/usercomments.phtml b/themes/bootstrap3/templates/RecordTab/usercomments.phtml
index 4bd7cb6e88b..e00d5eaaffc 100644
--- a/themes/bootstrap3/templates/RecordTab/usercomments.phtml
+++ b/themes/bootstrap3/templates/RecordTab/usercomments.phtml
@@ -19,6 +19,8 @@
         <textarea name="comment" class="form-control" rows="3" required></textarea><br/>
         <? if ($this->tab->isRecaptchaActive()): ?>
           <?=$this->recaptcha()->html(true, false) ?><br/>
+        <? else: ?>
+          <script>/* workaround for nested form bug */</script>
         <? endif; ?>
         <input class="btn btn-primary" data-loading-text="<?=$this->transEsc('Submitting') ?>..." type="submit" value="<?=$this->transEsc("Add your comment")?>"/>
       <? else: ?>
-- 
GitLab