You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the update() function of extrafields.class.php file, when we update extrafield as html type, the variable $lengthdb is not set. It generate a php warning.
This error doesn't appear on extrafield edit page (like "/societe/admin/societe_extrafields.php" page or others) because when we update, we reload the page but it is still present even if we can't see it. This is not a problem on these pages but if we update an extrafield from module descriptor, the page isn't reloaded and we can see this warning :
The page can't be loaded because of the warning.
The probleme comes from extrafields.class.php, in update() function l.606 :
Dolibarr Version
19.0.01
Environment PHP
8.2.10
Environment Database
MySQL or MariaDB 8.0.31-0ubuntu0.20.04.2
Steps to reproduce the behavior and expected behavior
Bug
On the update() function of extrafields.class.php file, when we update extrafield as html type, the variable $lengthdb is not set. It generate a php warning.
This error doesn't appear on extrafield edit page (like "/societe/admin/societe_extrafields.php" page or others) because when we update, we reload the page but it is still present even if we can't see it. This is not a problem on these pages but if we update an extrafield from module descriptor, the page isn't reloaded and we can see this warning :
The page can't be loaded because of the warning.
The probleme comes from extrafields.class.php, in update() function l.606 :
Dolibarr Version
19.0.01
Environment PHP
8.2.10
Environment Database
MySQL or MariaDB 8.0.31-0ubuntu0.20.04.2
Steps to reproduce the behavior and expected behavior
Update an extrafield in module descriptor :
$extrafields = new Extrafields($this->db);
$res = $extrafields->update("extrafieldtest", "Test", "html", 2000, societe);
Activate the module.
Attached files
No response
The text was updated successfully, but these errors were encountered: