We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f94998 commit 2322bafCopy full SHA for 2322baf
app/code/Magento/Customer/Model/Customer.php
@@ -1052,6 +1052,21 @@ public function beforeDelete()
1052
return parent::beforeDelete();
1053
}
1054
1055
+ /**
1056
+ * Processing object before save data
1057
+ *
1058
+ * @return $this
1059
+ */
1060
+ public function beforeSave() {
1061
+ // Need to use attribute set or future updates can cause data loss
1062
+ if (!$this->getAttributeSetId()) {
1063
+ $this->setAttributeSetId(
1064
+ CustomerMetadataInterface::ATTRIBUTE_SET_ID_CUSTOMER
1065
+ );
1066
+ }
1067
+ return parent::beforeSave();
1068
1069
+
1070
/**
1071
* Processing object after save data
1072
*
0 commit comments