fix cloning
This commit is contained in:
parent
28afc71d7f
commit
a2a5426252
|
@ -52,12 +52,13 @@ class ProductController extends Controller
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function clone(Product $product)
|
public function clone(Product $product, GeneralSettings $general_settings)
|
||||||
{
|
{
|
||||||
$this->checkPermission(self::WRITE_PERMISSION);
|
$this->checkPermission(self::WRITE_PERMISSION);
|
||||||
|
|
||||||
return view('admin.products.create', [
|
return view('admin.products.create', [
|
||||||
'product' => $product,
|
'product' => $product,
|
||||||
|
'credits_display_name' => $general_settings->credits_display_name,
|
||||||
'locations' => Location::with('nodes')->get(),
|
'locations' => Location::with('nodes')->get(),
|
||||||
'nests' => Nest::with('eggs')->get(),
|
'nests' => Nest::with('eggs')->get(),
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue