django-oscar / django-oscar

Domain-driven e-commerce for Django

Home Page:http://oscarcommerce.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Required Rich Text Product Attribute issue when validating

R-baji opened this issue · comments

Issue Summary

If the Product Type has an attribute of type Rich Text, and it was marked as required, then these attributes were left empty while creating the product. No errors will be pointed correctly to the rendered field, cause the corresponding textarea tag has a style property display: none; to allow the RichText Iframe handling the input.
1

Steps to Reproduce

  1. Create a New Product Type from the dashboard
  2. Add a Product Attribute of type Rich Text and mark it as required
  3. Create a new Product, then try to save without filling the Product Attribute mentioned in Step 2

Expected Result

To have the error tooltip displayed like it does for other types of attributes (in the attached image the attribute type is Text)
2

Actual Result

No errors are displayed and this prevents from saving the product, unless the user filled the attribute with some value

Technical details

  • Python version: 3.10.12.
  • Django version: 3.2.18
  • Oscar version: 3.2