nova-flexible-content icon indicating copy to clipboard operation
nova-flexible-content copied to clipboard

Replicate - thing crashes

Open HeadStudios opened this issue 1 year ago • 0 comments

Nova model crashes if I try and replicate another one

$templater = Campaign::where('id', 88)->first(); $new_ish = $templater->replicate(); $new_ish->save();

Error, error

[2022-11-02 13:15:22] production.ERROR: Undefined property: stdClass::$layout {"userId":1,"exception":"[object] (ErrorException(code: 0): Undefined property: stdClass::$layout at /home/forge/rrdevours.monster/vendor/whitecube/nova-flexible-content/src/Value/Resolver.php:41) [stacktrace]

Also any tips on how to loop through and edit each one in a replicated model to make some modifications? Thanks!

HeadStudios avatar Nov 02 '22 02:11 HeadStudios