Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
darfio committed Dec 19, 2017
1 parent 769ef8f commit a4e0f3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/ReportsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function index(Request $request)
->with('currency')
->orderBy('transaction_date', 'desc');

if ($request->has('project')) {
if ($request->has('project') && !empty($request->project)) {
$q->where('project_id', $request->project);
}

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/TransactionTypesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function edit($id)
{
$transaction_type = TransactionType::findOrFail($id);

return view('transaction_types.edit', compact('transactiontype'));
return view('transaction_types.edit', compact('transaction_type'));
}

/**
Expand Down

0 comments on commit a4e0f3c

Please sign in to comment.