Forum

addFieldInTextBoxFo...
 
Notifications
Retirer tout

addFieldInTextBoxForEmailTemplateItem not working with normal text editor

3 Posts
2 Utilisateurs
0 Reactions
1,772 Vu
Louis Heredero
(@baryhobal)
Posts: 49
Trusted Member
Début du sujet
 
[#7594]

It seems that the function addFieldInTextBoxForEmailTemplateItem (view/js/projeqtor.js:5756 V9.1.2) doesn't work with the normal text editor. Indeed, on line 5748, idTextBox is set to dojo.byId('template').value, but on line 5781, it tries to use setValue on idTextBox. I believe line 5748 should be var idTextBox = dojo.byId('template');

Line 5748:

var idTextBox = dojo.byId('template').value;

Line 5781:

idTextBox.setValue(newText);

Corrected line 5748:

var idTextBox = dojo.byId('template');

 
Posté : 22/06/2021 5:30 pm
Flou
 Flou
(@flou)
Posts: 253
Reputable Member
 

Hello,

thank you for finding and fixing a problem.
Your fixe it's right, it must replace  on ligne 5748 in view/js/projeqtor.js

var idTextBox = dojo.byId('template').value;

by:

var idTextBox = dojo.byId('template');

This correction will be available in V9.2.1.


 
Posté : 23/06/2021 12:40 pm
Louis Heredero
(@baryhobal)
Posts: 49
Trusted Member
Début du sujet
 

I just tested the fix. It seems it should even be dijit.byId and not dojo.byId


 
Posté : 24/06/2021 2:26 pm
Share:
Retour en haut