Skip to content

Commit

Permalink
HAIMW-210 Fix dissappearing fields upon form completion
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-bokdam committed Jun 17, 2024
1 parent ee169dc commit 4050c26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Model/Form/AddCustomerTypeRadioButtons.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ public function saveSelectField(EntityFormInterface $form): void
{
$select = $form->getField(self::FIELD_NAME);

if ($select->getValue() !== $select->getPreviousValue()) {
// Let's not use magic method here, as it can potentially return the value with `getValue`
$previousValue = $select->getData('previous_value');
if ($select->getValue() !== $previousValue) {
$this->setCustomerTypeInSession($form, $select->getValue());
}
}
Expand Down

0 comments on commit 4050c26

Please sign in to comment.