2.2 B2B - Error when editing company
-
20-01-2021 - |
Вопрос
When updating a company in the Magento Admin, I am seeing this error:
No company admin website ID is specified in request.
When that error occurs, I am redirected to the New Company form. Has anyone ever experienced this issue?
Решение
I finally had the time to return to this task and debug it properly using xDebug, and found the issue:
A preference for the Save
Controller had been created by a previous developer which was missing CustomerInterface::WEBSITE_ID
from the $allFormFields
array in the extractData()
method. 🤦🏽♂️
Не связан с magento.stackexchange