mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for client portal
This commit is contained in:
parent
c36689efec
commit
18bb84f2a1
@ -32,8 +32,8 @@ class ContactAccount
|
||||
if(!Ninja::isHosted()) {
|
||||
|
||||
$account_id = Account::first()->id;
|
||||
$request->attributes->add(['account_id' => $account_id]);
|
||||
|
||||
$request->request->add(['account_id' => $account_id]);
|
||||
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
|
@ -49,7 +49,7 @@ class SetDomainNameDb
|
||||
];
|
||||
|
||||
if($company = MultiDB::findAndSetDbByDomain($query)){
|
||||
$request->attributes->add(['account_id' => $company->account_id]);
|
||||
$request->request->add(['account_id' => $company->account_id]);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -71,7 +71,7 @@ class SetDomainNameDb
|
||||
];
|
||||
|
||||
if($company = MultiDB::findAndSetDbByDomain($query)){
|
||||
$request->attributes->add(['account_id' => $company->account_id]);
|
||||
$request->request->add(['account_id' => $company->account_id]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user