Comment 1 for bug 1873286

Revision history for this message
Galen Charlton (gmc) wrote : Re: jQuery 3.5.0 breaks AngularJS reporter template interface

Further research suggests that the specific culprit may be the security fix in 3.5.0 that changes how jquery.htmlPreFilter works. [1] In particular, it no longer converts closing tags to make them XHTML complaint.

The following appears to make the report template editor work with jQuery 3.5.0.

diff --git a/Open-ILS/src/templates/staff/reporter/t_edit_template.tt2 b/Open-ILS/src/templates/staff/reporter/t_edit_template.tt2
index 97b71c02f3..e85e526c99 100644
--- a/Open-ILS/src/templates/staff/reporter/t_edit_template.tt2
+++ b/Open-ILS/src/templates/staff/reporter/t_edit_template.tt2
@@ -21,7 +21,7 @@
     [% l('Template Description') %]
   </div>
   <div class="col-md-10">
- <div><textarea class="form-control" ng-model="templateDescription" required/></div>
+ <div><textarea class="form-control" ng-model="templateDescription" required></textarea></div>
   </div>
 </div>

[1] https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/