Merge branch 'master' of github.com:akaunting/akaunting

This commit is contained in:
Cüneyt Şentürk 2021-02-11 17:09:42 +03:00
commit bc1a9b7dfd

View File

@ -3,7 +3,7 @@
namespace App\View\Components\Documents\Form; namespace App\View\Components\Documents\Form;
use App\Abstracts\View\Components\DocumentForm as Component; use App\Abstracts\View\Components\DocumentForm as Component;
use Illuminate\Support\Str; use App\Models\Common\Company as Model;
class Company extends Component class Company extends Component
{ {
@ -14,7 +14,7 @@ class Company extends Component
*/ */
public function render() public function render()
{ {
$company = user()->companies()->first(); $company = Model::find(session('company_id'));
$inputNameType = config('type.' . $this->type . '.route.parameter'); $inputNameType = config('type.' . $this->type . '.route.parameter');