Commit 27d7511f by Francisco Salazar

update extra info product

parent 98bd1473
...@@ -276,7 +276,7 @@ class AdminProductController extends Controller ...@@ -276,7 +276,7 @@ class AdminProductController extends Controller
public function extraInfo(RequestProductInfo $request) public function extraInfo(RequestProductInfo $request)
{ {
$info = ProductInfo::find($request->product_id); $info = ProductInfo::where("product_id", $request->product_id)->first();
if ($info == null) { if ($info == null) {
$info = new ProductInfo(); $info = new ProductInfo();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment