salesagility / SuiteCRM-Core

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

Campaign Wizard: Cannot add Tracker #97

Open l00v3 opened 2 years ago

l00v3 commented 2 years ago

Issue

When trying to add a new Tracker to a Campaign through Campaign Wizard, the button "Create Tracker" does nothing. There is an error in Browser Console

Expected Behavior

Adding a Tracker through Campaign Wizard works.

Actual Behavior

When clicking on the "Create Tracker", there is an error in Browser console:

Uncaught TypeError: window.parent.$ is not a function
    create https://crm.domain.net/legacy/modules/EmailTemplates/EmailTemplate.js:83
    jQuery 10
        dispatch
        handle
        add
        add
        Ee
        each
        each
        Ee
        on
        r
    EmailTrackerController https://crm.domain.net/legacy/modules/EmailTemplates/EmailTemplate.js:91
    onclick https://crm.domain.net/legacy/index.php?return_module=Campaigns&return_action=WizardHome&return_id=a24849e0-a7f8-4dc9-44fb-627d292296e8&campaign_id=a24849e0-a7f8-4dc9-44fb-627d292296e8&jump=1&campaign_type=Email&template_id=8999b254-de87-33d2-0982-6279016089ff&module=Campaigns&action=WizardMarketing:1

Possible Fix

Not really a fix, but a temporary workaround. Adding Tracker directly on Campaign main page (not through Wizard) works.

Steps to Reproduce

  1. Campaign -> -> Actions -> Launch Wizard
  2. Templates -> Tracker URLs -> Create Tracker

Context

The flow of creating a campaign through Wizard is disrupted, Trackers have to be added additionally on the main Campaign page.

Your Environment

BastianHammer commented 1 month ago

Just tested it on 8.7 and the bug still persists.