diff --git a/app/Http/Controllers/V2/Projects/CreateProjectWithFormController.php b/app/Http/Controllers/V2/Projects/CreateProjectWithFormController.php index f74068e57..6f9580fd0 100644 --- a/app/Http/Controllers/V2/Projects/CreateProjectWithFormController.php +++ b/app/Http/Controllers/V2/Projects/CreateProjectWithFormController.php @@ -95,6 +95,7 @@ public function __invoke(Request $request): EntityWithSchemaResource foreach ($projectPitch->treeSpecies()->get() as $treeSpecies) { $project->treeSpecies()->create([ 'collection' => $treeSpecies->collection ?? TreeSpecies::COLLECTION_PRIMARY, + 'name' => $treeSpecies->name, 'amount' => $treeSpecies->amount, ]); }