Merge pull request #633 from ateuber/bugfix-mosaico-segments

Bugfix: include list segment when saving in Mosaico
This commit is contained in:
Tomas Bures 2019-07-16 18:31:07 +02:00 committed by GitHub
commit 62e63fbb80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,7 +111,7 @@
$.post('/editorapi/update?type={{type}}&editor={{resource.editorName}}', { $.post('/editorapi/update?type={{type}}&editor={{resource.editorName}}', {
id: {{resource.id}}, id: {{resource.id}},
name: '{{resource.name}}', name: '{{resource.name}}',
{{#if resource.list}} list: {{resource.list}}, {{/if}} {{#if resource.list}} list: {{resource.list}}+':'+{{resource.segment}}, {{/if}}
html: html, html: html,
editorData: JSON.stringify({ editorData: JSON.stringify({
template: '{{resource.editorData.template}}', template: '{{resource.editorData.template}}',