Skip to content

[Bug]: PC0037 for OnValidate of the same field #357

Description

@TKapitan

Analyzer

PlatformCop

Issue type

False positive (diagnostic fires when it shouldn't)

Rule ID

PC0037

Description

The PC0037 should not be triggered for assignment to fields in their own OnValidate triggers (and also in OnBefore/After validate). This is always by design.

These cases includes

  • default values
  • value transformation (e.g. unit price in the base app and rounding etc.)
Image

AL code to reproduce

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions