fix: bug with non-status patches

This commit is contained in:
2026-07-09 19:15:24 +02:00
parent 7cd124a213
commit 96900b70dc
+1 -1
View File
@@ -83,7 +83,7 @@ class ProjectStateProcessor implements ProcessorInterface
throw new AuthenticationException();
}
if ($data->status !== $project->getStatus()) {
if (isset($data->status) && $data->status !== $project->getStatus()) {
if (!$this->projectService->canTransition($actor, $project, $data->status)) {
throw new AccessDeniedException(\sprintf(
"Cannot move the Project from status '%s' to '%s'",