This is an automated email from the git hooks/post-receive script. New commit to branch feature/253-tuiles in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 71b940e2df5aace5c9263cff89baf9a14b17da3f Author: Cécilia Bossard <bossard@codelutin.com> Date: Mon Mar 2 17:04:18 2020 +0100 ref #253 Correction duplication KO --- pollen-ui-riot-js/src/main/web/js/PollForm.js | 2 +- pollen-ui-riot-js/src/main/web/tag/poll/MyPollsHeader.tag.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/js/PollForm.js b/pollen-ui-riot-js/src/main/web/js/PollForm.js index cc3e8e9f..017f866c 100644 --- a/pollen-ui-riot-js/src/main/web/js/PollForm.js +++ b/pollen-ui-riot-js/src/main/web/js/PollForm.js @@ -78,7 +78,6 @@ class PollForm { //TODO check if everything is still on the model if (clone) { this.model.id = undefined; - this.model.voteCount = 0; this.model.commentCount = 0; this.model.createDate = undefined; this.model.canVote = false; @@ -100,6 +99,7 @@ class PollForm { if (clone) { this.model.questions.forEach((question) => { + question.id = undefined; question.choices.forEach((choice) => { choice.id = undefined; choice.permission = undefined; diff --git a/pollen-ui-riot-js/src/main/web/tag/poll/MyPollsHeader.tag.html b/pollen-ui-riot-js/src/main/web/tag/poll/MyPollsHeader.tag.html index 0dc6f11e..26a6704a 100644 --- a/pollen-ui-riot-js/src/main/web/tag/poll/MyPollsHeader.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/poll/MyPollsHeader.tag.html @@ -130,7 +130,7 @@ import "../popup/ModalReboot.tag.html"; this.refs.rightSubMenuSeparator.display(false); this.update(); - } + }; this.deletePolls = (e) => { -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.