Skip to content

[Bug]: User-selected Audit File Export Format gets overwritten on insert when creating document via Page #29859

@vlkov

Description

@vlkov

Describe the issue

When a user creates a new Audit File Export Document through the "Audit File Export Doc. Card" page (5267), any value they select for the "Audit File Export Format" field is overwritten when the record is inserted.

I suggest to check if "Audit File Export Format" is already set before overwriting it in OnInsert.

Expected behavior

When a user manually selects a value through the UI, that value should be preserved. The default from setup should only be applied when:

Creating a record programmatically without specifying the format
The user hasn't already selected a value

Steps to reproduce

Open page 5267 "Audit File Export Doc. Card"
Create a new record (user sees blank card)
Select a value for "Audit File Export Format" field
Move to another field or save the record
The selected value is replaced with the default from setup

Additional context

No response

I will provide a fix for a bug

  • I will provide a fix for a bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions