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
as it appears on /product/card.php , but if you ask me would be a better solution (to avoid similar error on the future) to modify the function selectWorkstations() to return empty string when the module workstations is not enabled:
public function selectWorkstations($selected = '', $htmlname = 'idworkstations', ...)
{
global $conf, $langs, $user, $hookmanager;
if (!isModEnabled('workstation')) return ''; // <------ my proposed solution to avoid this error in the future
...
}
Note: this function is defined on /product/class/html.formproduct.class.php.
Dolibarr Version
19, 20
Environment PHP
No response
Environment Database
No response
Steps to reproduce the behavior and expected behavior
create a BoM draft, without having enabled the module Workstations
Note: if you have enabled ONCE the module Workstations, then the table workstatiosn_workstations has been created and then you will not get the error. So, this error only happens when you have not enabled never this module.
Attached files
No response
The text was updated successfully, but these errors were encountered:
Bug
If you have not enabled STILL the Workstations module, then there is database error when you access to BoM still in draft mode:
This is because in the
/bom/tpl/objectline_create.tpl.php
appear this:before to check if the module Workstations is enabled. So it could be fixed adding this:
as it appears on
/product/card.php
, but if you ask me would be a better solution (to avoid similar error on the future) to modify the functionselectWorkstations()
to return empty string when the module workstations is not enabled:Note: this function is defined on
/product/class/html.formproduct.class.php
.Dolibarr Version
19, 20
Environment PHP
No response
Environment Database
No response
Steps to reproduce the behavior and expected behavior
Note: if you have enabled ONCE the module Workstations, then the table workstatiosn_workstations has been created and then you will not get the error. So, this error only happens when you have not enabled never this module.
Attached files
No response
The text was updated successfully, but these errors were encountered: