Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.31k stars 2.75k forks source link

Addition of Mandatory form field product "desc" breaks product CREATE functionality #30862

Open jman482002 opened 3 weeks ago

jman482002 commented 3 weeks ago

Bug

Addition of Mandatory form field product “desc” (Description) causes "invalid form control" error in browser. This error results in the inability to CREATE new products (add new records to the database).

Browser Error Console Description: An invalid form control with name=‘desc’ is not focusable.

Dolibarr Version

19.02

Environment PHP

8.1.2-1ubuntu2

Environment Database

MySQL or MariaDB 5.5.5-10.6.18-MariaDB-0ubuntu0.22.04.1

Steps to reproduce the behavior and expected behavior

Add product "desc" to Mandatory form fields setup. Try to CREATE a new product.

Attached files

image image image

sonikf commented 3 weeks ago

Hi @jman482002 Works fine in 19.0.3!

eldy commented 3 weeks ago

Thanks for report. I have just pushed fixes for 20.0 so feature should works also on fields that use ckeditor WYSIWYG editor. Also the error in the console has been fixed. But before 20.0, you may try 19.0.3