-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
BugThis is a bug (something does not work as expected)This is a bug (something does not work as expected)
Description
Bug
If we use the workflow module combined with the ORDER_VALID_AFTER_CLOSE_PROPAL option, this is ignored after the client's signature.
Dolibarr Version
18.0.1, 23.0.0
Environment PHP
No response
Environment Database
No response
Steps to reproduce the behavior and expected behavior
- Active workflow module
- Active auto order creation after propal signature on workflow module
- Set ORDER_VALID_AFTER_CLOSE_PROPAL in "Others options" top 1.
- Use customer signature link to sign propal
Attached files
The problem stems from the fact that the user's permissions haven't been loaded. After the client signs, the user who approved the quote (user_validation_id) is used. However, the command to load their permissions is missing.
To fix the problem, simply add, before to call trigger 'PROPAL_CLOSE_SIGNED' (htdocs/core/ajax/onlineSign.php:306)
$user->loadRights();
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugThis is a bug (something does not work as expected)This is a bug (something does not work as expected)