Problem/Motivation

When a user chooses a reaction, the vote is stored, however if you navigate away from this page and then come back, the radio on the reaction form is not preselected with the current users choice so there is no indication of what the current users vote was.

I may be mistaken but I think this started happening with the latest round of releases. I seem to remember it being preselected in the past.

Comments

loze created an issue. See original summary.

loze’s picture

it appears the form is being built with an empty vote entity of bundle type 'vote' instead of loading the current users vote.

loze’s picture

I'm not sure if this is the optimal way to do this, but the patch here does fix the issue for me.

Alternatively, maybe this should happen in viewElements of the field formatter, instead of always creating a vote entity of type 'vote'?

  • 4e01dac2 committed on 8.x-1.x
    Issue #3445356 by loze: Current users previously voted reaction not...
elaman’s picture

Status: Active » Fixed
elaman’s picture

Another good catch @loze, thank you!

Status: Fixed » Closed (fixed)

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