fix cloning
This commit is contained in:
parent
28afc71d7f
commit
a2a5426252
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
return view('admin.products.create', [
|
||||
'product' => $product,
|
||||
'credits_display_name' => $general_settings->credits_display_name,
|
||||
'locations' => Location::with('nodes')->get(),
|
||||
'nests' => Nest::with('eggs')->get(),
|
||||
]);
|
||||
|
|
Loading…
Add table
Reference in a new issue