Closed emteknetnz closed 3 months ago
castedCopy()
should handle this - it accepts a classname and uses it to create an instance of that class. See https://github.com/silverstripe/silverstripe-framework/blob/c6aee6c5c7dd216db1a3c181d44511901c6c52bc/src/Forms/FormField.php#L1360-L1366
Will fix in https://github.com/silverstripe/silverstripe-framework/pull/11235 instead
Issue https://github.com/silverstripe/silverstripe-framework/issues/11198
Fixes unit test failing in kitchen-sink ci run on recipe-content-blocks