FIX Do not remap polymorphic class names to UserDefinedForm if they are already an instance of it

This commit is contained in:
Robbie Averill 2018-09-07 12:50:34 +02:00
parent 01a772e1b7
commit 0ac33336bd

View File

@ -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();