mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-25 20:49:16 -05:00
update: Semantic adjustment in poll/vote.
Both controller and view.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user