update: Semantic adjustment in poll/vote.

Both controller and view.
This commit is contained in:
gyakkun
2020-02-13 12:16:55 +08:00
parent 94f9601b18
commit 7856d27dbf
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -90,8 +90,8 @@ class PollController extends Controller
}
// Operate options after validation
foreach ($request->input('option') as $option) {
Option::findOrFail($option)->increment('votes');
foreach ($request->input('option-id') as $id) {
Option::findOrFail($id)->increment('votes');
}
// Make voter after option operation completed