Add prepared questions to Q&A slides
The slide form takes questions entered beforehand (e.g. received by mail), one per line, while collecting. They are stored as regular questions with a reserved participant hash, synced idempotently, and not counted as participants. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
76d8bb3170
commit
4b5f9d92a1
7 files changed
+248
-4
No files matched your search
@@ -165,7 +165,7 @@ class ResponsesTable extends Table
|
||||
{
|
||||
$row = $this->find()
|
||||
->select(['n' => $this->find()->func()->count('DISTINCT participant_hash')])
|
||||
->where(['slide_id' => $slideId])
|
||||
->where(['slide_id' => $slideId, 'participant_hash !=' => VoteService::PREPARED_HASH])
|
||||
->disableHydration()
|
||||
->first();
|
||||
|
||||
@@ -186,7 +186,7 @@ class ResponsesTable extends Table
|
||||
'n' => $this->find()->func()->count('DISTINCT Responses.participant_hash'),
|
||||
])
|
||||
->innerJoinWith('Slides')
|
||||
->where(['Slides.poll_id' => $pollId])
|
||||
->where(['Slides.poll_id' => $pollId, 'Responses.participant_hash !=' => VoteService::PREPARED_HASH])
|
||||
->groupBy(['Responses.slide_id'])
|
||||
->disableHydration()
|
||||
->all();
|
||||
|
||||
Reference in new issue
Block a user