Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New feature #09554: add the possibility to change an answer value wit…
…h plugin event beforeQuestionRender() Dev: quickly done, replaced by complete function in 2.06 Dev: see http://bugs.limesurvey.org/view.php?id=9500
- Loading branch information
Showing
1 changed file
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
9618b2f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great - thank you!
9618b2f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GID is still missing.
9618b2f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey denis, thank you very much for that fast commit!
9618b2f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I test it, and it seems that the this:
$question['answers'] = $event->get('answers');
is not working. This works:
$answer = $event->get('answers');
9618b2f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed : 5500ed6
I prefer to not rework completely, at start : i'm not sure $answer is returned at the same time than $question (maybe "print survey page for example).