Skip to content

Auto order validation after customer signs #37451

@wilowzevitch

Description

@wilowzevitch

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

  1. Active workflow module
  2. Active auto order creation after propal signature on workflow module
  3. Set ORDER_VALID_AFTER_CLOSE_PROPAL in "Others options" top 1.
  4. 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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThis is a bug (something does not work as expected)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions