Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
audave opened this issue Nov 21, 2023 · 2 comments · May be fixed by #988
Open

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

audave opened this issue Nov 21, 2023 · 2 comments · May be fixed by #988
Assignees
Labels
bug Something isn't working

Comments

@audave
Copy link
Contributor

audave commented Nov 21, 2023

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');
    }`
@audave audave added the bug Something isn't working label Nov 21, 2023
@shishir-intelli
Copy link
Collaborator

@audave
When we uninstall the field_ui module, NULL is passed to prefix which was causing this issue,
PR 988 will fix this issue.
Let me know if the issue is not resolved with the above PR.

@shishir-intelli shishir-intelli self-assigned this Nov 21, 2023
@audave
Copy link
Contributor Author

audave commented Nov 21, 2023

I've put a comment on #988 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants