2
0
forked from Wavyzz/dolibarr
Files
dolibarr-fork/htdocs/core/triggers
jyhere c38651075e FIX: workflow for closing supplier order dn't work (wrong source type) (#25407)
* FIX: workflow for closing supplier order dn't work (wrong source type)

* FIX: sql error when passing origin and origin id, no need to pass theses values

$object->origin is set to "commandeFournisseur', and it's definitively not working with the setStatus method.
SQL error : Table 'dolibarr.llx_commandeFournisseur' doesn't exist

I suppose origin should never be set to commandeFournisseur, but 'order_supplier' instead. Also, setStatus() $elementType is meant to be a table_element value, not an element value.

* Update interface_20_modWorkflow_WorkflowManager.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-07-23 21:44:20 +02:00
..

Directory content
--------------------------------------------------------
This directory contains all available Dolibarr triggers.

Trigger file name syntax is:
> interface_modModule_Mytrigger.php[-NORUN]

where:
> modModule is part of module descriptor file name found in core/modules
            directory or value 'all' if not enabled by a particular module.
> Mytrigger is name of the trigger. The PHP class inside the trigger file
            would be named InterfaceMytrigger.
> -NORUN is optional and disable completely a trigger file if set. To use 
            a trigger with such a name, rename file to remove the -NORUN part.