Skip to content

Commit

Permalink
oops double incrementing
Browse files Browse the repository at this point in the history
  • Loading branch information
jxjj committed Dec 3, 2024
1 parent 1ac6663 commit fc54449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/FolderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function importQuestions(Request $req, Chime $chime, Folder $folder)
$newQuestion = $question->replicate();
$newQuestion->folder()->associate($folder);
$newQuestion->current_session_id = null;
$newQuestion->order = ++$currentOrderIndex;
$newQuestion->order = $currentOrderIndex;
$newQuestion->save();
}

Expand Down

0 comments on commit fc54449

Please sign in to comment.