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 19bec6f commit 7965c9bCopy full SHA for 7965c9b
app/code/Magento/Customer/Model/Customer.php
@@ -1051,6 +1051,21 @@ public function beforeDelete()
1051
return parent::beforeDelete();
1052
}
1053
1054
+ /**
1055
+ * Processing object before save data
1056
+ *
1057
+ * @return $this
1058
+ */
1059
+ public function beforeSave() {
1060
+ // Need to use attribute set or future updates can cause data loss
1061
+ if (!$this->getAttributeSetId()) {
1062
+ $this->setAttributeSetId(
1063
+ CustomerMetadataInterface::ATTRIBUTE_SET_ID_CUSTOMER
1064
+ );
1065
+ }
1066
+ return parent::beforeSave();
1067
1068
+
1069
/**
1070
* Processing object after save data
1071
*
0 commit comments