From 316284b7e2e55ac2ffaab6a355836c561fc4d28f Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 11 Jul 2016 23:36:51 +0300 Subject: [PATCH] Bug fixes --- app/Http/Controllers/QuoteController.php | 2 +- app/Http/Controllers/TaskController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/QuoteController.php b/app/Http/Controllers/QuoteController.php index 2efd429be52b..a9719798a1b2 100644 --- a/app/Http/Controllers/QuoteController.php +++ b/app/Http/Controllers/QuoteController.php @@ -119,7 +119,7 @@ class QuoteController extends BaseController 'taxRateOptions' => $options, 'defaultTax' => $defaultTax, 'countries' => Cache::get('countries'), - 'clients' => Client::scope()->viewable()->with('contacts', 'country')->orderBy('name')->get(), + 'clients' => Client::scope()->with('contacts', 'country')->orderBy('name')->get(), 'taxRates' => TaxRate::scope()->orderBy('name')->get(), 'currencies' => Cache::get('currencies'), 'sizes' => Cache::get('sizes'), diff --git a/app/Http/Controllers/TaskController.php b/app/Http/Controllers/TaskController.php index 49def0aae85d..839c06395bcf 100644 --- a/app/Http/Controllers/TaskController.php +++ b/app/Http/Controllers/TaskController.php @@ -213,7 +213,7 @@ class TaskController extends BaseController private static function getViewModel() { return [ - 'clients' => Client::scope()->viewable()->with('contacts')->orderBy('name')->get(), + 'clients' => Client::scope()->with('contacts')->orderBy('name')->get(), 'account' => Auth::user()->account, ]; }