add code comment
authordemeritcowboy <demeritcowboy@hotmail.com>
Wed, 21 Jun 2023 12:09:51 +0000 (08:09 -0400)
committerGitHub <noreply@github.com>
Wed, 21 Jun 2023 12:09:51 +0000 (08:09 -0400)
js/model/crm.uf.js

index f92dcb1e0d71eb1b929c4fcfbf8b6bdadae122ca..af67b2ecdca26d951ee2f99c588047e72fa773fc 100644 (file)
       });
       this.each(function(ufFieldModel){
         const length = ufFieldModelsByKey[ufFieldModel.getSignature()].length > 1;
+        // Allow multiple free html fields, but note this would only work on an English install, and only if the field label hasn't been changed.
         const label = ufFieldModelsByKey[ufFieldModel.getSignature()][0].attributes.label !== 'Free HTML';
         const is_duplicate = length && label;
         if (is_duplicate !== ufFieldModel.get('is_duplicate')) {