Merge pull request 'Fix form submission staying in draft status' (#13) from fix/submit-draft-status into master
All checks were successful
linter / quality (push) Successful in 1m22s
security / Dependency Audit (push) Successful in 1m27s
security / Static Analysis (push) Successful in 1m24s
tests / ci (8.4) (push) Successful in 1m52s
tests / ci (8.5) (push) Successful in 2m10s

Reviewed-on: #13
This commit was merged in pull request #13.
This commit is contained in:
2026-03-06 12:29:00 +08:00
3 changed files with 137 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ class ApprovalService
$workflow = $travelRequest->workflow;
if (! $workflow) {
return;
throw new \RuntimeException('No active approval workflow is configured.');
}
$steps = $workflow->steps()->orderBy('order')->get();