Fix weird url if license checkout fails

This commit is contained in:
snipe 2017-09-29 04:37:33 -07:00
parent 9ce2d1f560
commit 05a8ba9a8e

View file

@ -341,8 +341,7 @@ class LicensesController extends Controller
return redirect()->route("licenses.index")->with('success', trans('admin/licenses/message.checkout.success'));
}
// Redirect to the asset management page with error
return redirect()->to("admin/licenses/{$asset_id}/checkout")->with('error', trans('admin/licenses/message.create.error'))->with('license', new License);
return redirect()->route("licenses.index")->with('error', trans('admin/licenses/message.checkout.error'));
}