Skip to content

Commit 9a36030

Browse files
kryskooltonygermano
authored andcommitted
feat: add serverName variable on alert template
Signed-off-by: Christophe Chauvet <christophe.chauvet@gmail.com>
1 parent 0f0d8a4 commit 9a36030

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

client/src/com/mirth/connect/client/ui/alert/DefaultAlertEditPanel.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ public void updateVariableList() {
105105
variables.add("alertId");
106106
variables.add("alertName");
107107
variables.add("serverId");
108+
variables.add("serverName");
108109
variables.add("globalMapVariable");
109110
variables.add("date");
110111

server/src/com/mirth/connect/server/alert/Alert.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public Map<String, Object> createContext() {
5656
context.put("alertId", model.getId());
5757
context.put("alertName", model.getName());
5858
context.put("serverId", ConfigurationController.getInstance().getServerId());
59+
context.put("serverName", ConfigurationController.getInstance().getServerName());
5960
context.put("date", new DateTool());
6061

6162
return context;

0 commit comments

Comments
 (0)