Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
moqui
/
moqui-mjml
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
10763346
authored
11 months ago
by
acetousk
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fix versionName bug
1 parent
a1c1b3c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
service/mjml/MjmlServices.xml
service/mjml/MjmlServices.xml
View file @
1076334
...
...
@@ -68,8 +68,8 @@ along with this software (see the LICENSE.md file). If not, see
grapesFile.putText(dataRaw)
grapesFile.move(grapesLocation)
]]>
</script>
<set
field=
"htmlVersionName"
from=
"htmlFile?.getCurrentVersion()?.getVersionName()"
/>
<set
field=
"grapesVersionName"
from=
"grapesFile?.getCurrentVersion()?.getVersionName()"
/>
<set
field=
"htmlVersionName"
from=
"htmlFile?.getCurrentVersion()?.getVersionName()
?: htmlFile?.getRootVersion()?.getVersionName() ?: '01'
"
/>
<set
field=
"grapesVersionName"
from=
"grapesFile?.getCurrentVersion()?.getVersionName()
?: grapesFile?.getRootVersion()?.getVersionName() ?: '01'
"
/>
<service-call
name=
"update#moqui.basic.email.EmailTemplate"
in-map=
"[emailTemplateId:emailTemplateId,grapesLocation:grapesLocation,htmlLocation:htmlLocation]"
/>
<service-call
name=
"mjml.MjmlServices.get#GlobalGrapeVarList"
out-map=
"globalGrapeVarList"
/>
...
...
@@ -128,8 +128,10 @@ along with this software (see the LICENSE.md file). If not, see
<if
condition=
"!grapesFile || grapesFile.parent?.location != grapesJsResource.location"
>
<return
error=
"true"
message=
"Resource not found"
/>
</if>
<set
field=
"grapesVersionName"
from=
"grapesFile?.getCurrentVersion()?.getVersionName()"
/>
<set
field=
"htmlVersionName"
from=
"ec.resource.getLocationReference(htmlLocation)?.getCurrentVersion()?.getVersionName()"
/>
<set
field=
"grapesVersionName"
from=
"grapesFile?.getCurrentVersion()?.getVersionName() ?: grapesFile?.getRootVersion()?.getVersionName() ?: '01'"
/>
<set
field=
"tempHtmlFile"
from=
"ec.resource.getLocationReference(htmlLocation)"
/>
<set
field=
"htmlVersionName"
from=
"tempHtmlFile?.getCurrentVersion()?.getVersionName() ?: tempHtmlFile?.getRootVersion()?.getVersionName() ?: '01'"
/>
<set
field=
"tempHtmlFile"
from=
"null"
/>
<service-call
name=
"mjml.MjmlServices.get#GlobalGrapeVarList"
out-map=
"globalGrapeVarList"
/>
<set
field=
"dataRaw"
from=
"grapesFile.getText()"
/>
...
...
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to post a comment