Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to save selected template in campaign #229

Open
jlavsund opened this issue Mar 4, 2023 · 6 comments
Open

Unable to save selected template in campaign #229

jlavsund opened this issue Mar 4, 2023 · 6 comments
Labels
Area: Legacy Status: Team Investigating Labels for issues in which the Core Team are investigating / Intend to Investigate Type:Bug Something isn't working

Comments

@jlavsund
Copy link

jlavsund commented Mar 4, 2023

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.

@clemente-raposo clemente-raposo added Type:Bug Something isn't working Type:Suite7 Issue Spefc to SuiteCRM 7 that should be in the SuiteCRM 7 repo Status: Team Investigating Labels for issues in which the Core Team are investigating / Intend to Investigate Area: Legacy and removed Type:Suite7 Issue Spefc to SuiteCRM 7 that should be in the SuiteCRM 7 repo labels Mar 15, 2023
@samirchauhan
Copy link

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

@pgorod
Copy link
Contributor

pgorod commented Mar 28, 2023

Perhaps this is the same issue as #186?

Please try this fix here, if applicable:
#186 (comment)

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

@samirchauhan
Copy link

@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
Copy link
Author

jlavsund commented Mar 28, 2023

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
Copy link

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

@Zahid-Abbas-Ali-Baig
Copy link

Zahid-Abbas-Ali-Baig commented May 15, 2023

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

  • Replace the window.parent.$('.ui-dialog-content:visible').dialog('close'); with $('.ui-dialog-content:visible').dialog('close'); on line number 330
  • Replace the window.parent.$('.ui-dialog-content:visible').dialog('close'); with $('.ui-dialog-content:visible').dialog('close'); on line number 308

By doing this it would be fixed @pgorod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Legacy Status: Team Investigating Labels for issues in which the Core Team are investigating / Intend to Investigate Type:Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants