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

#1362 [Core] fix: require category class in mod #1369

Merged

Conversation

evarisk-theo
Copy link
Contributor

No description provided.

@evarisk-theo evarisk-theo self-assigned this Jul 7, 2023
@evarisk-theo evarisk-theo added Enhancement New feature or request 1 labels Jul 7, 2023
@evarisk-theo evarisk-theo linked an issue Jul 7, 2023 that may be closed by this pull request
@@ -591,6 +591,8 @@ public function init($options = ''): int
addDocumentModel('controldocument_odt', 'controldocument', 'ODT templates', 'DOLISMQ_CONTROLDOCUMENT_ADDON_ODT_PATH');

if (!empty($conf->global->DOLISMQ_SHEET_TAGS_SET) && empty($conf->global->DOLISMQ_SHEET_DEFAULT_TAG)) {
include_once DOL_DOCUMENT_ROOT . '/categories/class/categorie.class.php';
Copy link
Contributor

Choose a reason for hiding this comment

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

Require_once est mieux

$this->ref = $refAnswerMod->getNextValue($this);
$this->position = $this->getMaxPosition() + 1;
$this->status = $this->status ?: self::STATUS_VALIDATED;
$refAnswerModName = empty($conf->global->DOLISMQ_ANSWER_ADDON) ? 'mod_answer_standard' : $conf->global->DOLISMQ_ANSWER_ADDON;
Copy link
Contributor

Choose a reason for hiding this comment

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

Rajouter également le check sur le require de la class modAnswer ca améliorera si jamais on change le modèles de réf

Copy link
Contributor Author

Choose a reason for hiding this comment

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

voir dolisirh fichier projet

@evarisk-theo evarisk-theo force-pushed the fix_missing_require_categorie_class branch from 130a7b8 to f3c1ce0 Compare July 12, 2023 18:01
@evarisk-theo evarisk-theo merged commit de6b500 into Evarisk:develop Jul 18, 2023
@evarisk-theo evarisk-theo deleted the fix_missing_require_categorie_class branch July 18, 2023 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fatal activation module
2 participants