dnadesign / silverstripe-elemental-virtual

Allows Content Blocks to be reused between pages.
BSD 3-Clause "New" or "Revised" License
7 stars 26 forks source link

Error displaying the edit form for original block once linked in Virtual Element #63

Open jalamanderman opened 6 months ago

jalamanderman commented 6 months ago

Once an element that is inline editable is linked and used in a Virtual Element it is no longer able to be edited.

Steps to reproduce:

This only happens for inline editable elements.

Have reproduced a minimal, reproducible example using the silverstripe/installer boilerplate.

Screenshot 2024-04-24 at 10 39 24 AM

Screenshot 2024-04-24 at 10 40 15 AM

robbyahnmsd commented 1 month ago

Problem from silverstripe> framework > Forms > Schema > FormSchema.php Line 118.

private function recursivelyValidateSchemaData()

Could not find a react component for field \PageElements_12_VirtualClones. /vendor/silverstripe/framework/src/Forms/Schema/FormSchema.php:132

Can we add null check before check schemaType and component? VirtualClone schemaType showing null exception.

When I place the following condtion, it is working. if(!is_null($data[schemaType'])){

Thanks.