mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Sure, whatever I guess.
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
55abd242f2
commit
5a7ffa5664
|
@ -107,7 +107,9 @@ class ConsumablesController extends Controller
|
|||
public function edit(Consumable $consumable) : View | RedirectResponse
|
||||
{
|
||||
$this->authorize($consumable);
|
||||
return view('consumables/edit')->with('category_type', 'consumable');
|
||||
return view('consumables/edit')
|
||||
->with('item', $consumable)
|
||||
->with('category_type', 'consumable');
|
||||
|
||||
}
|
||||
|
||||
|
@ -199,7 +201,7 @@ class ConsumablesController extends Controller
|
|||
{
|
||||
$consumable = Consumable::withCount('users as users_consumables')->find($consumable->id);
|
||||
$this->authorize($consumable);
|
||||
return view('consumables/view');
|
||||
return view('consumables/view', compact('consumable'));
|
||||
}
|
||||
|
||||
public function clone(Consumable $consumable) : View
|
||||
|
|
|
@ -143,6 +143,6 @@ class GroupsController extends Controller
|
|||
*/
|
||||
public function show(Group $group) : View | RedirectResponse
|
||||
{
|
||||
return view('groups/view');
|
||||
return view('groups/view', compact('group'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue