We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdf3ff8 commit 52aea2aCopy full SHA for 52aea2a
src/Models/Question.php
@@ -27,7 +27,8 @@ public function render(Response $response = null)
27
$selectedChoice = null;
28
29
if ($response) {
30
- $selectedChoice = $this->responseItems()->where('response_id', $response->id)->first();
+ $responseItem = $this->responseItems()->where('response_id', $response->id)->first();
31
+ $selectedChoice = $responseItem->choice;
32
}
33
34
$view = View::make('lmc::question', ['question' => $this, 'selectedChoice' => $selectedChoice]);
0 commit comments