Answer the question
In order to leave comments, you need to log in
Why is there no order comment validation and how to implement it?
The sale.order.ajax component has a separate function for the "order comment" block - editPropsComment.
It simply creates a few DOM nodes that are added to the passed block (PROPS by default).
Because a comment is not a property, it has no settings in the admin panel and there is no validation function. In this connection, the question is, is the textarea of comments protected from attacks by some settings from the core for the form, for example? Or do I need to somehow write data validation, or use some built-in functions other than user props validation?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question