Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Conversation

@pandreani-opendsi
Copy link

No description provided.

if ($action == 'PROPAL_CREATE') {
// only for clone proposal and if version number is used
if ($object->context['createfromclone'] == 'createfromclone' && !empty($object->array_options['options_propalehistory_version_num'])) {
if (isset($object->context['createfromclone']) == 'createfromclone' && !empty($object->array_options['options_propalehistory_version_num'])) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non. Tu veux avoir la valeur de $object->context['createfromclone'], tu ne veux pas seulement savoir si c'est set.

dol_syslog("Trigger '" . $this->name . "' for action '$action' launched by " . __FILE__ . ". id=" . $object->id);

define('INC_FROM_DOLIBARR', true);
//define('INC_FROM_DOLIBARR', true);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pourquoi tu as commenté ça ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants