PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.0
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.0
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
← All changes | back/Controllers/Campaigns/Edition.php +3 -3 11.0.5 → 11.1.0 View file →
@@ -9,9 +9,8 @@
9 9 use AcyMailing\Classes\QueueClass;
10 10 use AcyMailing\Classes\SegmentClass;
11 11 use AcyMailing\Classes\TagClass;
12 12 use AcyMailing\Classes\UserClass;
13 -use AcyMailing\Controllers\AutomationController;
14 13 use AcyMailing\Controllers\MailsController;
15 14 use AcyMailing\Controllers\SegmentsController;
16 15 use AcyMailing\Helpers\EditorHelper;
17 16 use AcyMailing\Helpers\EntitySelectHelper;
@@ -25,8 +24,9 @@
25 24 {
26 25 public function newEmail(): void
27 26 {
28 27 acym_setVar('layout', 'new_email');
28 + $mailClass = new MailClass();
29 29
30 30 $data = [
31 31 'selectedType' => acym_getVar('string', 'email_type', ''),
32 32 'menuClass' => $this->menuClass,
@@ -34,9 +34,9 @@
34 34
35 35 $listClass = new ListClass();
36 36 if (acym_isAdmin()) {
37 37 $returnUrl = urlencode(base64_encode(acym_completeLink('campaigns')));
38 - $favoriteTemplate = $this->config->get('favorite_template', 0);
38 + $favoriteTemplate = $mailClass->getFavoriteTemplateId();
39 39 $welcomeUnsub = '&list_id={dataid}&type_editor=acyEditor&return='.$returnUrl;
40 40
41 41 if (empty($favoriteTemplate)) {
42 42 $data = array_merge(
@@ -562,9 +562,9 @@
562 562 $data['triggers_display'] = [];
563 563
564 564 foreach ($triggers as $key => $trigger) {
565 565 $data['triggers_select'][$key] = $trigger->name;
566 - $data['triggers_display'][$key] = $trigger->option;
566 + $data['triggers_display'][$key] = $trigger;
567 567 }
568 568
569 569 if (!empty($data['currentCampaign']->sending_params) && empty($data['currentCampaign']->sending_params['trigger_type'])) {
570 570 foreach (array_keys($triggers) as $oneTrigger) {