We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c66c41 commit e1ca6feCopy full SHA for e1ca6fe
1 file changed
modules/promotion/src/Form/PromotionForm.php
@@ -92,6 +92,9 @@ public function form(array $form, FormStateInterface $form_state) {
92
if ($this->entity->isNew() && !empty($form['offer']['widget'][0]['target_plugin_id'])) {
93
$form['offer']['widget'][0]['target_plugin_id']['#empty_value'] = '';
94
$form['offer']['widget'][0]['target_plugin_id']['#default_value'] = '';
95
+ if (!$form_state->isRebuilding()) {
96
+ unset($form['offer']['widget'][0]['target_plugin_configuration']);
97
+ }
98
}
99
100
return $form;
0 commit comments