Stopping product saving process in observer
问题 I am currently developing a module working with the product edit in the backend. Its purpose is to retrieve categories the product belongs to and populate an attribute (the Brand attribute) with the list of selected categories. It is mandatory for the admin to select at least one category. My module works as expected except that I don't know how to stop the saving process if the admin hasn't selected any category while editing a product. Here is the workflow Administrator selects categories