Fixed
Project:
Feedback
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 May 2026 at 00:31 UTC
Updated:
4 May 2026 at 00:53 UTC
Jump to comment: Most recent
If you have more than one feedback type, and you change the Feedback type select list on a block form, the value is saved but the select list does not show it.
/admin/structure/feedback_message_type/add, and add a new feedback type with the Label and Machine name = zzz_feedback. Don't add any fields./admin/structure/block/add/feedback_block/olivero?region=sidebar_second. Set the Title and Machine name = test. Set Feedback type = zzz_feedback. Click the Save block button./admin/structure/block/manage/test.zzz_feedback.Default feedback.Fix the spelling mistake in the block form...
diff --git a/src/Plugin/Block/FeedbackBlock.php b/src/Plugin/Block/FeedbackBlock.php
index b45e2bc..0bc7efe 100644
--- a/src/Plugin/Block/FeedbackBlock.php
+++ b/src/Plugin/Block/FeedbackBlock.php
@@ -109,7 +109,7 @@ public function blockForm($form, FormStateInterface $form_state) {
'#type' => 'select',
'#title' => $this->t('Feedback type'),
'#options' => $feedback_types,
- '#default_option' => $type,
+ '#default_value' => $type,
'#description' => $this->t('Select the feedback type which will be used.'),
];
None.
None.
None.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mparker17Tests pass. Going to skip the reviews because this was written by a maintainer.
Comment #5
mparker17Great. I'll update this issue when this code is released.