Fix form submission staying in draft status #13
Reference in New Issue
Block a user
Delete Branch "fix/submit-draft-status"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
ApprovalService::submit()was silently returning when no active workflow existed, leaving requests inDraftwhile falsely showing a success messageApprovalService::submit()now throws aRuntimeExceptioninstead of silently returning, so failures are never swallowedTest plan
php artisan test --compact tests/Feature/TravelRequestSubmissionTest.php— all 4 tests pass