Skip to content

Eloquent\Model->getDirty() is type sensitive. Is this the behaviour we want? #1429

@ChrisReid

Description

@ChrisReid

When a form is submitted, integers are presented as strings. When we resubmit the same form, $value !== $this->original[$key] so is classed as 'dirty' and rewritten to the database. I propose to change this to:

$value != $this->original[$key]

on line 2158. I would submit a patch but PR seems to be disabled.

Can anyone think of why it should be type sensitive?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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