Skip to content

UmbracoForms 4.5.10 - Record approval causes fields order change #1004

@gfaessler

Description

@gfaessler

When an Umbraco form record is approved, the order of the json data stored in the table UFRecords changes. this causes the loop which outputs the information in the email sent to appear in a different order. The order of the json data should not change when record is approved, only the status should

Before approval (State : Submitted)
{'8315f431-4603-4b37-f0ca-b2104a644b59':'Oui','b6e733e2-2e7b-424b-e046-f5b4f1f0f62c':'Shop Biofruits Vétroz - Rue du Rhône 12, 1963 Vétroz','b5a9c49f-ff18-4bd4-e4b5-64fa281c869a':'2','5f2d4f87-3f61-412d-9cce-84f0024400c0':'0','dbe7d9ef-c301-41e8-dcfd-e572b813dcf1':'','97489eac-5ab1-49b2-d963-10689276ef0b':'Faessler3','b1503467-b69f-4d0e-c614-041fa5001c73':'Gilles3','00407fe4-5a49-4ae6-c24f-a596d7800cfd':'xx.yy@gmail.com','06bdf0be-4d2d-4eb1-80dd-de741018c8b3':'','c868d56b-a1d8-40f4-abc6-49412170be4f':'Oui'}

After approval (State : Approved)
{'5f2d4f87-3f61-412d-9cce-84f0024400c0':'0','97489eac-5ab1-49b2-d963-10689276ef0b':'Faessler3','b1503467-b69f-4d0e-c614-041fa5001c73':'Gilles3','c868d56b-a1d8-40f4-abc6-49412170be4f':'Oui','dbe7d9ef-c301-41e8-dcfd-e572b813dcf1':'','8315f431-4603-4b37-f0ca-b2104a644b59':'Oui','06bdf0be-4d2d-4eb1-80dd-de741018c8b3':'','b6e733e2-2e7b-424b-e046-f5b4f1f0f62c':'Shop Biofruits Vétroz - Rue du Rhône 12, 1963 Vétroz','00407fe4-5a49-4ae6-c24f-a596d7800cfd':'xx.yy@gmail.com','b5a9c49f-ff18-4bd4-e4b5-64fa281c869a':'2'}

Reproduction

  1. Create a form with with post moderation enabled.
  2. Submit a form
  3. Check record in UFRecords table
  4. Approve form trough back-office
  5. Check again record in UFRecords table

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