Skip to content

#4382 [Ticket] fix: field not appear and remove somes consts #4423

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

evarisk-kilyan
Copy link
Contributor

No description provided.

Copy link
Contributor

Choose a reason for hiding this comment

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

Il faut faire attention avec la définition de $object

$object est globalisée et fait parti des paramètres des hook générique ducoup cela peut entraîner des problèmes si les hook sont mal géré

Ici $catogory = new Categorie($db);

@@ -2548,6 +2533,30 @@ public function init($options = '')
dolibarr_set_const($this->db, 'DIGIRISKDOLIBARR_BACKWARD_TRASH_ELEMENTS', 1, 'integer');
}
}
// BACKWARD REMOVE TICKET PUBLIC INTERFACE CONST
if (!getDolGlobalInt('DIGIRISKDOLIBARR_REMOVE_TICKET_PUBLIC_INTERFACE_CONST') && $conf->global->DIGIRISKDOLIBARR_TICKET_MAIN_CATEGORY) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Getdolglobalint

@@ -2548,6 +2533,30 @@ public function init($options = '')
dolibarr_set_const($this->db, 'DIGIRISKDOLIBARR_BACKWARD_TRASH_ELEMENTS', 1, 'integer');
}
}
// BACKWARD REMOVE TICKET PUBLIC INTERFACE CONST
if (!getDolGlobalInt('DIGIRISKDOLIBARR_REMOVE_TICKET_PUBLIC_INTERFACE_CONST') && $conf->global->DIGIRISKDOLIBARR_TICKET_MAIN_CATEGORY) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Faire en sorte que le comportement soit que sur l'entité 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Amélioration] - Homogénisation de la gestion des messages pour les tickets et/ou registre
2 participants