Merge branch 'bugfix/nominee-register' into 'main'

DONE: fix bug where register attendance is not appear

See merge request erahn/voting!7
This commit is contained in:
ISMAIL MASSERAN
2026-04-19 04:15:41 +00:00
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -1,2 +1,3 @@
[ ] checking user can vote one or two based on number of nominees [ ] checking user can vote one or two based on number of nominees
[x] disable auto trigger tac [x] disable auto trigger tac
[ ] set the env back to production in prod
@@ -53,7 +53,7 @@ class AddController extends Controller
'unit' => 'required', 'unit' => 'required',
'position_id' => 'required|exists:position,id', 'position_id' => 'required|exists:position,id',
'partylist_id' => 'nullable|exists:partylist,id', 'partylist_id' => 'nullable|exists:partylist,id',
'photo' => 'nullable|image', 'photo' => 'nullable',
'umur' => 'nullable|integer|min:1|max:120', 'umur' => 'nullable|integer|min:1|max:120',
'jawatan_sekarang' => 'nullable|string|max:255', 'jawatan_sekarang' => 'nullable|string|max:255',
'experience' => 'nullable|string', 'experience' => 'nullable|string',
@@ -65,7 +65,7 @@ class SyncApplicableVotersController extends Controller
} }
$new = $template->replicate(); $new = $template->replicate();
$new->election_id = $electionId; $new->election_id = $electionId;
$new->kehadiran = null; $new->kehadiran = 0;
$new->fizikal_registration_verified_at = null; $new->fizikal_registration_verified_at = null;
$new->persetujuan = null; $new->persetujuan = null;
$new->status_penyata = 'DRAF'; $new->status_penyata = 'DRAF';