1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Order designs in ascending order

This commit is contained in:
David Bomba 2022-10-28 07:56:38 +11:00
parent c1a1ff0b41
commit ec95d087f1
3 changed files with 549 additions and 369 deletions

View File

@ -136,6 +136,6 @@ class DesignFilters extends QueryFilters
public function entityFilter()
{
//return $this->builder->whereCompanyId(auth()->user()->company()->id);
return $this->builder->whereCompanyId(auth()->user()->company()->id)->orWhere('company_id', null);
return $this->builder->where('company_id', auth()->user()->company()->id)->orWhere('company_id', null)->orderBy('id','asc');
}
}

914
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -37,7 +37,7 @@ class YodleeApiTest extends TestCase
{
parent::setUp();
if(!config('ninja.yodlee.client_id'))
// if(!config('ninja.yodlee.client_id'))
$this->markTestSkipped('Skip test no Yodlee API credentials found');
$this->makeTestData();