#2321 [Trigger] add: trigger for unlink question and group#2322
Open
evarisk-kilyan wants to merge 1 commit intoEvarisk:developfrom
Open
#2321 [Trigger] add: trigger for unlink question and group#2322evarisk-kilyan wants to merge 1 commit intoEvarisk:developfrom
evarisk-kilyan wants to merge 1 commit intoEvarisk:developfrom
Conversation
nicolas-eoxia
requested changes
Feb 11, 2026
Contributor
nicolas-eoxia
left a comment
There was a problem hiding this comment.
Dans le principe ça fonctionne mais c'est pas reexploitable
| @@ -192,6 +192,7 @@ | |||
| } | |||
|
|
|||
| $question->deleteObjectLinked($sourceId, $sourceType, $questionId, 'digiquali_question'); | |||
Contributor
There was a problem hiding this comment.
J'ai vérifié et il existe déjà un trigger dans cette fonction donc je vois pas de raison de refaire un trigger
Comment on lines
+170
to
+171
| ObjectUnlinkquestionTrigger = Question retiré | ||
| ObjectUnlinkquestiongroupTrigger = Groupe de questions retiré |
Contributor
There was a problem hiding this comment.
Il me semble qu'il existe déjà un trad générique pour ça dans saturne et si c'est pas le cas il serait intéressant de la rajouter
| $objects = ['QUESTION', 'SHEET', 'CONTROL', 'SURVEY', 'QUESTIONGROUP']; | ||
| $triggerTypes = ['CREATE', 'MODIFY', 'DELETE', 'VALIDATE', 'LOCK', 'ARCHIVE']; | ||
| $extraActions = ['CONTROL_UNVALIDATE', 'SURVEY_UNVALIDATE', 'CONTROL_SENTBYMAIL', 'SURVEY_SENTBYMAIL', 'CONTROL_SAVEANSWER', 'SURVEY_SAVEANSWER', 'SHEET_ADDQUESTION', 'SHEET_ADDQUESTIONGROUP', 'QUESTIONGROUP_ADDQUESTION']; | ||
| $extraActions = ['CONTROL_UNVALIDATE', 'SURVEY_UNVALIDATE', 'CONTROL_SENTBYMAIL', 'SURVEY_SENTBYMAIL', 'CONTROL_SAVEANSWER', 'SURVEY_SAVEANSWER', 'SHEET_ADDQUESTION', 'SHEET_ADDQUESTIONGROUP', 'QUESTIONGROUP_ADDQUESTION', 'SHEET_UNLINKQUESTION', 'SHEET_UNLINKQUESTIONGROUP']; |
Contributor
There was a problem hiding this comment.
Alors j'ai un doute mais normalement ce type de trigger a des informations complémentaires et je pense pas que dans la fonction getTriggerDescription il y soit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.