Skip to content

October 2.0 - Error creating a record for the first time (create_onSave) #88

@Alldar

Description

@Alldar

When creating a record for the first time, an error appears:

SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for type integer: "create" (SQL: select * from "janvince_smallrecords_areas" where "janvince_smallrecords_areas"."id" = create limit 1)

Small fix for this:

$test = parent::create_onSave($context);

Replaced by

$test = parent::create_onSave($areaId, $context);

The issuе is reproducible only in October 2.0, in October 1.0 / Wintercms everything is fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions