Skip to content
Snippets Groups Projects
Commit 4cea1dbb authored by Andreas Schindlbeck's avatar Andreas Schindlbeck
Browse files

Notification: fixes Prio

parent 229ce3b3
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@
</entityField>
<entityField>
<name>ICON</name>
<color></color>
<colorProcess>%aditoprj%/entity/Notification_entity/entityfields/icon/colorProcess.js</colorProcess>
<contentType>IMAGE</contentType>
<valueProcess>%aditoprj%/entity/Notification_entity/entityfields/icon/valueProcess.js</valueProcess>
</entityField>
......
......@@ -10,15 +10,13 @@ import("Notification_lib");
* ForcedPriority always goes first. If not set, it's userPriority-time. If userPrio isn't set either, the default-NotificationType-Priority ist the chosen one.
*/
var typecode = vars.get("$field.TYPECODE");
var resolvedPrio = vars.get("$field.RESOLVEDPRIORITY");
if(typecode != null && typecode != "")
var typeObject = notification.getType(typecode);
var priority = NotificationUtil.chooseRightPrio(vars.get("$field.FORCEDPRIORITY"), typeObject);
logging.log("realPrio: " + priority);
if(resolvedPrio != null && resolvedPrio != "")
{
logging.log("resolvedPrio: " + resolvedPrio);
switch(priority)
switch(resolvedPrio)
{
case "LOW":
result.string(neon.PRIORITY_LOW_COLOR);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment