Skip to content

Commit

Permalink
Fixed #6367 - pass table name and column_id to scopeCompanyables
Browse files Browse the repository at this point in the history
Solves error: Integrity constraint violation: 1052 Column 'company_id' in where clause is ambiguous
  • Loading branch information
snipe committed Feb 13, 2019
1 parent f88fee0 commit e2c0f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/AssetsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public function selectlist(Request $request)
'assets.assigned_to',
'assets.assigned_type',
'assets.status_id'
])->with('model', 'assetstatus', 'assignedTo')->NotArchived());
])->with('model', 'assetstatus', 'assignedTo')->NotArchived(),'company_id', 'assets');

if ($request->has('assetStatusType') && $request->input('assetStatusType') === 'RTD') {
$assets = $assets->RTD();
Expand Down

0 comments on commit e2c0f01

Please sign in to comment.