salesagility / SuiteCRM-Core

SuiteCRM - Open source CRM for the world
https://www.suitecrm.com
GNU Affero General Public License v3.0
174 stars 119 forks source link

Unable to save selected template in campaign #229

Open jlavsund opened 1 year ago

jlavsund commented 1 year ago

Issue:

When I try to save the selected template in the campaign wizard I get this error in the browser console.

EmailTemplate.js:69 Uncaught TypeError: window.parent.$ is not a function at save (EmailTemplate.js:69:15) at EmailTemplateController (EmailTemplate.js:77:55) at HTMLInputElement.onclick (index.php?return_module=Campaigns&campaign_id=1c129887-849e-9e82-7c3a-64030d550782&return_action=WizardNewsLetter&return_id=1c129887-849e-9e82-7c3a-64030d550782&module=Campaigns&action=WizardMarketing:959:116) save @ EmailTemplate.js:69 EmailTemplateController @ EmailTemplate.js:77 onclick @ index.php?return_module=Campaigns&campaign_id=1c129887-849e-9e82-7c3a-64030d550782&return_action=WizardNewsLetter&return_id=1c129887-849e-9e82-7c3a-64030d550782&module=Campaigns&action=WizardMarketing:959

Expected Behavior:

Being able to save the template and click next to continue with the campaign wizard.

Actual Behavior:

Nothing happens except for the error message in the browser developer console.

Steps to Reproduce: 1) Create new campaign. 2) Select email. 3) Fill in all the fields and click next. 4) Select a target list and click next. 5) Select a template and click save. Nothing happens.

Environment:

SuiteCRM 8.2.4 on an Ubuntu 20.04.5 server with MariaDB 10.3.38 and PHP 7.4.3. and Chrome 110.0.5481.178 on Windows 11.

samirchauhan commented 1 year ago

Any update on this issue, I am facing the same. Not able to select template and move to next screen.

pgorod commented 1 year ago

Perhaps this is the same issue as #186?

Please try this fix here, if applicable: https://github.com/salesagility/SuiteCRM-Core/issues/186#issuecomment-1471852860

If it is the same, then this issue here can be closed as a duplicate.

samirchauhan commented 1 year ago

@pgorod This doesn't fix the issue which I am facing regarding the email templates not being saved. Here's the screenshot of the msg and error:

suitecrm-emailcampaign

jlavsund commented 1 year ago

As Samirchauhan said this doesnt´t fix the template save error but after removing the spaces in the file I´m able to click next in the capaign wizard without saving. So I can contine to create the campign.

Zahid-Abbas-Ali-Baig commented 1 year ago

I'm facing the same issue has any new updates on it @pgorod . image

Zahid-Abbas-Ali-Baig commented 1 year ago

I have resolved the issue by editing the following file /public/legacy/modules/EmailTemplates/EmailTemplate.js

By doing this it would be fixed @pgorod