mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
When restoring client show view not edit page
This commit is contained in:
parent
b1c91e2632
commit
4a3529b523
@ -37,7 +37,7 @@ class BaseController extends Controller
|
||||
|
||||
// when restoring redirect to entity
|
||||
if ($action == 'restore' && count($ids) == 1) {
|
||||
return redirect("{$entityTypes}/" . $ids[0] . '/edit');
|
||||
return redirect("{$entityTypes}/" . $ids[0]);
|
||||
// when viewing from a datatable list
|
||||
} elseif (strpos($referer, '/clients/')) {
|
||||
return redirect($referer);
|
||||
|
@ -85,6 +85,18 @@ class CreditController extends BaseController
|
||||
return View::make('credits.edit', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $publicId
|
||||
*
|
||||
* @return \Illuminate\Http\RedirectResponse
|
||||
*/
|
||||
public function show($publicId)
|
||||
{
|
||||
Session::reflash();
|
||||
|
||||
return Redirect::to("credits/{$publicId}/edit");
|
||||
}
|
||||
|
||||
public function update(UpdateCreditRequest $request)
|
||||
{
|
||||
$credit = $request->entity();
|
||||
|
Loading…
x
Reference in New Issue
Block a user