From 983595f39a2e85be65506f458661f6075eaae47d Mon Sep 17 00:00:00 2001
From: s j <sj@1729.be>
Date: Tue, 17 Dec 2024 15:03:50 +0000
Subject: [PATCH] imp: PlanProjectForm filter project selection on project
 bundle

---
 src/Form/PlanProjectForm.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/Form/PlanProjectForm.php b/src/Form/PlanProjectForm.php
index 673cf1d..88a82d2 100644
--- a/src/Form/PlanProjectForm.php
+++ b/src/Form/PlanProjectForm.php
@@ -101,6 +101,11 @@ class PlanProjectForm extends PlanEventForm {
             '#title' => $this->t('Project'),
             '#weight' => '10',
             '#target_type' => 'node',
+            '#selection_settings' => [
+              'target_bundles' => [
+                'project',
+              ],
+            ],
             '#autocreate' => [
               'bundle' => 'project',
             ],
-- 
GitLab