Skip to content

Commit

Permalink
fix(global): Fix auth->company_id force cast conversion (int)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnovaro committed Mar 9, 2024
1 parent 4e5ef6e commit 0603174
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/Http/Controllers/Product/ProductCreateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ public function create(Request $request)
$category = new Category();
$brand = new Brand();
$data['product'] = $product;
$data['products'] = $product->getAllByCompanyId(Auth::user()->company_id);
$data['categories'] = $category->getAllActiveByCompany(Auth::user()->company_id);
$data['brands'] = $brand->getAllActiveByCompany(Auth::user()->company_id);
$data['products'] = $product->getAllByCompanyId((int) Auth::user()->company_id);
$data['categories'] = $category->getAllActiveByCompany((int) Auth::user()->company_id);
$data['brands'] = $brand->getAllActiveByCompany((int) Auth::user()->company_id);

return view('product/product', $data);
}
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

const APP_VERSION = '3.7.11';
const APP_VERSION = '3.7.12';

0 comments on commit 0603174

Please sign in to comment.