Skip to content

ID and BelongTo fields do not pass into Custom Validation Rule. #6261

@proart

Description

@proart
  • Laravel Version: 8.83.27
  • Nova Version: 4.32.16
  • PHP Version: 8.1
  • Operating System and Version: Ubuntu 20.04
  • Browser type and version: Chrome 122.0.6261.95

Hi!

Description:

Resource fields:
image

Custom validation rule for the debugging:
image

Detailed steps to reproduce the issue on a fresh Nova installation:

  1. Create a row for debug. Check ID. Then Click "Edit".
    image

  2. Edit -> Update & Continue
    image

  3. Check logs when passed CustomDebugRule(). Where is id field?
    image

The same issue for the BelongsTo fields. The BelongsTo fields are skipped in array $this->data. I need access to all fields in Custom Validation Rule.

How to fix this issue?

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