projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1579d34
)
add code comment
author
demeritcowboy
<demeritcowboy@hotmail.com>
Wed, 21 Jun 2023 12:09:51 +0000
(08:09 -0400)
committer
GitHub
<noreply@github.com>
Wed, 21 Jun 2023 12:09:51 +0000
(08:09 -0400)
js/model/crm.uf.js
patch
|
blob
|
blame
|
history
diff --git
a/js/model/crm.uf.js
b/js/model/crm.uf.js
index f92dcb1e0d71eb1b929c4fcfbf8b6bdadae122ca..af67b2ecdca26d951ee2f99c588047e72fa773fc 100644
(file)
--- a/
js/model/crm.uf.js
+++ b/
js/model/crm.uf.js
@@
-363,6
+363,7
@@
});
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')) {