Merge branch 'feature/notifications' into dev
All checks were successful
Build Docker Image / Docker-Build (push) Successful in 2m14s
Build Docker Image / Clean-Registry (push) Successful in -2s

This commit is contained in:
2026-01-29 20:04:12 +01:00

View File

@@ -2,8 +2,7 @@
package de.srsoftware.umbrella.messagebus.events;
import static de.srsoftware.umbrella.core.ModuleRegistry.projectService;
import static de.srsoftware.umbrella.core.ModuleRegistry.taskService;
import static de.srsoftware.umbrella.core.ModuleRegistry.*;
import static de.srsoftware.umbrella.core.constants.Field.*;
import static de.srsoftware.umbrella.core.constants.Module.TASK;
import static de.srsoftware.umbrella.core.model.Translatable.t;
@@ -78,6 +77,10 @@ public class TaskEvent extends Event<Task>{
@Override
protected Map<String, Object> filter(Map<String, Object> map) {
map.remove(MEMBERS);
var o = map.get(STATUS);
if (o instanceof Number status) try {
map.put(STATUS,Status.of(status.intValue()).name());
} catch (IllegalArgumentException ignores){}
return super.filter(map);
}