Merge branch 'main' into dev

This commit is contained in:
2025-08-25 16:36:36 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ public class Project implements Mappable {
this.companyId = companyId; this.companyId = companyId;
this.showClosed = showClosed; this.showClosed = showClosed;
this.members = members; this.members = members;
this.allowedStates = allowedStates; this.allowedStates = new ArrayList<>(allowedStates);
} }
public Collection<Status> allowedStates(){ public Collection<Status> allowedStates(){

View File

@@ -17,7 +17,7 @@ public record Status(String name, int code) implements Mappable {
public static final Status STARTED = new Status("STARTED",40); // was 20 public static final Status STARTED = new Status("STARTED",40); // was 20
public static final Status COMPLETE = new Status("COMPLETE",60); public static final Status COMPLETE = new Status("COMPLETE",60);
public static final Status CANCELLED = new Status("CANCELLED", 100); public static final Status CANCELLED = new Status("CANCELLED", 100);
public static final List<Status> PREDEFINED = new ArrayList<>(List.of(OPEN, STARTED, PENDING, COMPLETE, CANCELLED)); public static final List<Status> PREDEFINED = List.of(OPEN, STARTED, PENDING, COMPLETE, CANCELLED);
public static Status of(int code){ public static Status of(int code){
return switch (code){ return switch (code){