Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jman482002 opened this issue Sep 5, 2024 · 2 comments
Labels
Bug This is a bug (something does not work as expected)

Comments

@jman482002
Copy link

jman482002 commented Sep 5, 2024

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.

<textarea id="desc" name="desc" rows="4" style="margin-top: 5px; width: 90%; visibility: hidden; display: none;" class="flat " required=""></textarea>

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

@jman482002 jman482002 added the Bug This is a bug (something does not work as expected) label Sep 5, 2024
@sonikf
Copy link
Contributor

sonikf commented Sep 5, 2024

Hi @jman482002
Works fine in 19.0.3!

@eldy
Copy link
Member

eldy commented Sep 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected)
Projects
None yet
Development

No branches or pull requests

3 participants