fix edit products using new workflow mutations
This commit is contained in:
@@ -116,6 +116,13 @@ class MutationsController extends Controller
|
||||
}
|
||||
|
||||
DB::commit();
|
||||
|
||||
// Check if request came from transaction page
|
||||
if ($request->has('from_transaction_page') || str_contains($request->header('referer', ''), '/transaction')) {
|
||||
return redirect()->back()
|
||||
->with('success', 'Mutasi berhasil dibuat dan terkirim ke dealer tujuan');
|
||||
}
|
||||
|
||||
return redirect()->route('mutations.index')
|
||||
->with('success', 'Mutasi berhasil dibuat dan terkirim ke dealer tujuan');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user