Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warning php82 #14

Draft
wants to merge 1 commit into
base: 2022.5.3_rc
Choose a base branch
from
Draft

Conversation

pandreani-opendsi
Copy link

No description provided.

@@ -116,7 +116,7 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
//echo $action.'<br>';
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.

@@ -128,7 +128,7 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
} elseif ($action == 'PROPAL_VALIDATE' && $conf->global->PROPALEHISTORY_AUTO_ARCHIVE) {
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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants