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