Weight for vote deadline field on node entity fixed at 300

Created on 9 October 2022, almost 2 years ago
Updated 13 January 2024, 9 months ago

Problem/Motivation

For a node entity, when you enable "Use a vote deadline" under Voting settings, rate adds the field field_rate_vote_deadline to that entity type, and sets its "form display" weight at 300. Say you then want to change the weight via "Manage form display" to display that voting deadline field elsewhere on the form. Do so, then go view a node of that entity type, rate will then change that field's weight back to 300. Hence, currently, this voting deadline field is fixed at 300 weight no matter what.

Steps to reproduce

  1. Structure->"Rate widgets", then "+ Add rate widget"
  2. choose any Template
  3. Select any Entity that is a node, to attach the rate widget
  4. Enable "Use a vote deadline" under Voting settings
  5. Save rate widget
  6. Create any content you like, of this entity type...
  7. ...then via Structure->"Content types", select the entity type that the rate widget is on
  8. via "Manage form display" tab, observe that field_rate_vote_deadline is now present, with weight of 300
  9. Change this weight to whatever you like... Save
  10. Go back and view the Content that you previously created of this entity type...
  11. ...then go back to "Manage form display" tab and observe that the field again has a weight of 300 ...

Proposed resolution

rate should not touch this field's weight after it initially creates it on the entity type.

πŸ“Œ Task
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States FizCS3 Denver

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024