Skip to content
Browse files

Always currently-assigned project on invoice form

Even if the project is inactive, keeping it in the project dropdown
ensures the rest of the record can be edited.
  • Loading branch information...
lovett committed Nov 19, 2019
1 parent 935508f commit e0405164c4c062939656632f0be5da4d1d1ebb4c
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/Http/Controllers/InvoiceController.php
@@ -198,7 +198,7 @@ public function edit(Request $request, int $id)
$invoice = $request->user()->invoice($id);
$viewVars = [
'projects' => $request->user()->projectsForMenu(),
'projects' => $request->user()->projectsForMenu(null, $invoice->project_id),
'model' => $invoice,
'pageTitle' => "Edit Invoice {$invoice->number}",
'submission_method' => 'PUT',

0 comments on commit e040516

Please sign in to comment.
You can’t perform that action at this time.