Skip to content

Commit

Permalink
fix event formation_id
Browse files Browse the repository at this point in the history
  • Loading branch information
stephaned-exatech committed Oct 8, 2019
1 parent 75bcc91 commit 1ad2458
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LaravelH5p/Http/Controllers/AjaxController.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function finish(Request $request)
'correct_responses_pattern' => $request->has('object.definition.correctResponsesPattern') ? json_encode($request->input('object.definition.correctResponsesPattern')) : null,
'response' => $request->has('result.response') ? json_encode($request->input('result.response')) : null,
'additionals' => $request->has('object.definition.choices') ? json_encode($request->input('object.definition.choices')) : null,
'formation_id' => $activity_id,
'formation_id' => $formation_id,
'learningpath_id' => $learningpath_id,
'activity_id' => $activity_id
];
Expand All @@ -137,7 +137,7 @@ public function finish(Request $request)

$data = [];//donnée pour maj parent
$data['content_id'] = $h5p_id;
$data['formation_id'] = $activity_id;
$data['formation_id'] = $formation_id;
$data['learningpath_id'] = $learningpath_id;
$data['activity_id'] = $activity_id;
$data['score'] = 0;
Expand Down

0 comments on commit 1ad2458

Please sign in to comment.