Skip to content

Record fields are dropped when changing and saving a value on an old entry #1385

Open
@gabrielsuciu10

Description

@gabrielsuciu10

Which Umbraco Forms version are you using? (Please write the exact version, example: 13.4.0)

13.4.0

Which Umbraco version are you using? (Please write the exact version, example: 13.5.2)

13.6.0

Issue summary

Talked with Umbraco Support and Umbraco Developers about this issue, check specifics

When updating a value programmatically on an old entry in Umbraco Forms, from before a field on the form was changed (e.g. a field on the form has been deleted or changed to a new datatype), all values on the entry are dropped/deleted.

This can potentially result in a lot of customer data being lost.

Specifics

Had a meeting with Davis Hedgepeth ([email protected]) about the findings.

Davis found out that after you update the record field on an old form from before the forms fields were updated, the entry will suddenly have a lot less record fields on it.

Davis also found out that this issue only happens when the forms fields have been changed/updated or deleted after the entry has been added.

Steps to reproduce

  1. Create a form
  2. Create an entry
  3. Remove a field on the form
  4. Programmatically update a field on the entry
  5. Edit the same entry, change the value of a field on the entry and save in the Umbraco Forms backoffice
  6. Refresh the entry page

Expected result / actual result

I expect the values to stay as when you update an entry in backoffice.

The actual result is that all fields are empty

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions