Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

addFieldInTextBoxFo...
 
Notifications
Clear all

addFieldInTextBoxForEmailTemplateItem not working with normal text editor

3 Posts
2 Users
0 Reactions
1,800 Views
Louis Heredero
(@baryhobal)
Posts: 49
Active Member
Topic starter
 
[#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');

 
Posted : 22 Jun 2021 17H30
Flou
 Flou
(@flou)
Posts: 253
Active 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.


 
Posted : 23 Jun 2021 12H40
Louis Heredero
(@baryhobal)
Posts: 49
Active Member
Topic starter
 

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


 
Posted : 24 Jun 2021 14H26
Share:

Scroll to Top