Module CustomFields Cases: Difference between revisions

Jump to navigation Jump to search
→‎Linking Dolibarr objects from two different modules: fix mistake with php object creation
(→‎Linking Dolibarr objects from two different modules: fix mistake with php object creation)
Line 330: Line 330:


// Crafting a dummy intervention object
// Crafting a dummy intervention object
$fromobject = object(); // Init the object
$fromobject = new stdClass(); // Init an empty object
$fromobject->id = $sourceid; // We need the id and..
$fromobject->id = $sourceid; // We need the id and..
$fromobject->table_element = 'fichinter'; // the table_element (name of the table)
$fromobject->table_element = 'fichinter'; // the table_element (name of the table)
439

edits

Navigation menu