Data loss occurs when editing field with more questions than options.

in \Drupal\rating_field\Plugin\Field\FieldWidget\RatingWidgetBase::getSelectedOptions()
we loop over the options instead of the questions. That means that if you have questions than options the values will be empty.
This happens when we have a validation error on another form field while editing the entity.

Command icon Show commands

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

tim_dj created an issue. See original summary.

tim_dj’s picture

StatusFileSize
new2.01 KB
tim_dj’s picture

Status: Active » Needs review

gorkagr made their first commit to this issue’s fork.

  • gorkagr committed 7a24572 on 8.x-1.x
    Resolve #3240801 "Data loss occurs"
    
gorkagr’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.