Bug fixes

This commit is contained in:
Hillel Coren 2016-07-11 23:36:51 +03:00
parent b233aa0744
commit 316284b7e2
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ class QuoteController extends BaseController
'taxRateOptions' => $options, 'taxRateOptions' => $options,
'defaultTax' => $defaultTax, 'defaultTax' => $defaultTax,
'countries' => Cache::get('countries'), '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(), 'taxRates' => TaxRate::scope()->orderBy('name')->get(),
'currencies' => Cache::get('currencies'), 'currencies' => Cache::get('currencies'),
'sizes' => Cache::get('sizes'), 'sizes' => Cache::get('sizes'),

View File

@ -213,7 +213,7 @@ class TaskController extends BaseController
private static function getViewModel() private static function getViewModel()
{ {
return [ return [
'clients' => Client::scope()->viewable()->with('contacts')->orderBy('name')->get(), 'clients' => Client::scope()->with('contacts')->orderBy('name')->get(),
'account' => Auth::user()->account, 'account' => Auth::user()->account,
]; ];
} }