Skip to content

Commit 4944496

Browse files
committed
Fix seller mode condition in allProducts method of ProductListController to ensure boolean comparison
1 parent 9eebbbe commit 4944496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/Product/ProductListController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function allProducts(Request $request){
108108
$query->where('product_gender', $genderId);
109109
}
110110

111-
if ($request->has('seller_mode') && $request->input('seller_mode')) {
111+
if ($request->has('seller_mode') && $request->input('seller_mode')==true) {
112112
$query->where('is_wholesale',1);
113113

114114
}

0 commit comments

Comments
 (0)