Skip to content

#2321 [Trigger] add: trigger for unlink question and group#2322

Open
evarisk-kilyan wants to merge 1 commit intoEvarisk:developfrom
evarisk-kilyan:add_trigger_for_unlink
Open

#2321 [Trigger] add: trigger for unlink question and group#2322
evarisk-kilyan wants to merge 1 commit intoEvarisk:developfrom
evarisk-kilyan:add_trigger_for_unlink

Conversation

@evarisk-kilyan
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

@nicolas-eoxia nicolas-eoxia left a comment

Choose a reason for hiding this comment

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

Dans le principe ça fonctionne mais c'est pas reexploitable

@@ -192,6 +192,7 @@
}

$question->deleteObjectLinked($sourceId, $sourceType, $questionId, 'digiquali_question');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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é
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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'];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

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

Labels

Development

Successfully merging this pull request may close these issues.

pas d'évènement quand on délie une question d'un modèle

2 participants