Skip to content

Commit

Permalink
Fix: fix unknown cancellation reason (resolves #367)
Browse files Browse the repository at this point in the history
  • Loading branch information
CorwinDev committed Mar 7, 2024
1 parent cf96fc9 commit a47f784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Clients/ProductController.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function cancel(OrderProduct $product, Request $request)
}

$product->cancellation()->create([
'reason' => $request->reason,
'reason' => $request->cancellation_reason,
]);

return redirect()->back()->with('success', 'Product cancelled successfully.');
Expand Down

0 comments on commit a47f784

Please sign in to comment.