mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge branch '5.1' into 5.2
This commit is contained in:
commit
6176cf63b8
@ -71,6 +71,11 @@ class UpgradePolymorphicExtension extends DataExtension
|
||||
continue;
|
||||
}
|
||||
|
||||
// Don't rewrite class values when an existing value is set and is an instance of UserDefinedForm
|
||||
if ($relationshipObject instanceof UserDefinedForm) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$entry->$fieldName = $this->defaultReplacement;
|
||||
try {
|
||||
$entry->write();
|
||||
|
Loading…
Reference in New Issue
Block a user