Added show() redirect for CustomFields::show()
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
d40fe1b683
commit
e286ff0be3
1 changed files with 24 additions and 6 deletions
|
@ -40,6 +40,24 @@ class CustomFieldsController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Just redirect the user back if they try to view the details of a field.
|
||||||
|
* We already show those details on the listing page.
|
||||||
|
*
|
||||||
|
* @see CustomFieldsController::storeField()
|
||||||
|
* @author [A. Gianotto] [<snipe@snipe.net>]
|
||||||
|
* @since [v5.1.5]
|
||||||
|
* @return Redirect
|
||||||
|
* @throws \Illuminate\Auth\Access\AuthorizationException
|
||||||
|
*/
|
||||||
|
|
||||||
|
public function show()
|
||||||
|
{
|
||||||
|
return redirect()->route("fields.index");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a view with a form to create a new custom field.
|
* Returns a view with a form to create a new custom field.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue