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