Skip to content

Teams lose field values if field_ui is enabled/disabled #983

@audave

Description

@audave

Description

To replicate

  • Start With core field_ui module enabled
  • add some fields to the Team entity.
  • Create/edit a team and add a value to the newly created field.
  • View team -> value should present
  • Disable field_ui module
  • view team -> field value has vanished
  • Re-enable field_ui module
  • view team -> field value has reappeared

Below is the offending code:
$this->config->get('field_ui.settings')->get('field_prefix');
Returns a different value depending if field_ui is enabled.

` /**

  • Returns the field UI's field name prefix.
  • @return string
  • Prefix of the field.
    */
    protected function getFieldPrefix(): string {
    return (string) $this->config->get('field_ui.settings')->get('field_prefix');
    }`

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions