Fix: perbaikan fields ganda pada menu pejabat daerah#1067
Open
pandigresik wants to merge 1 commit into
Open
Conversation
|
🔄 AI PR Review sedang antri di server...
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request: Fix field form pejabat daerah tampil ganda
Deskripsi
Field form pada halaman tambah/edit Pejabat Daerah tampil ganda (duplicate). Setiap field (NIP, Email, Deskripsi, Telepon, Jabatan, Departemen) muncul dua kali dalam satu halaman. Perbaikan ini menghapus field-field duplikat sehingga form hanya menampilkan satu set field yang benar.
Perubahan yang dilakukan:
resources/views/employees/fields.blade.phpcol-sm-6pada field Nama agar konsisten dengan field lainnya@push('page_scripts')ke bagian atas file (sebelum field HTML) agar script focus() dijalankan setelah DOM readyold()pada select fieldposition_id(sebelumnya tidak ada fallback value saat validasi error)Alasan perubahan:
1ab58208- "Pasca rilis 2510.0.1"). Saat migrasiForm::keHtml::, field-field form ditulis ulang namun field lama tidak terhapus, sehingga menjadi ganda.col-sm-6) dan mempertahankan set kedua yang sudah sesuai format Html helper baru.Dampak perubahan:
col-sm-6)$('#name').focus()berjalan di posisi yang tepatposition_id) mempertahankan nilaiold()saat validasi errorMasalah Terkait (Related Issue)
Langkah untuk mereproduksi (Steps to Reproduce)
Sebelum perbaikan (masalah):
Setelah perbaikan (fix):
Testing pada fitur lain yang terkait:
Daftar Periksa (Checklist)
Teknis Detail
Penjelasan Teknis
File
resources/views/employees/fields.blade.phpmerupakan partial view yang di-include ke dalam:resources/views/employees/create.blade.php(form tambah)resources/views/employees/edit.blade.php(form edit)Rute terkait:
Root cause analysis:
Versi
rilis-devmemiliki 92 baris, sedangkan versi fix memiliki 52 baris. Perbedaan 40 baris adalah field-field duplikat yang dihapus.Konfigurasi yang berubah
Tidak ada perubahan konfigurasi.
Dependencies yang ditambahkan
Tidak ada dependencies baru.
Testing
Manual Testing
Screenshots / Video
simplescreenrecorder-2026-06-17_15.58.34.mp4
Sebelum:
Form pejabat daerah menampilkan field NIP, Email, Deskripsi, Telepon, Jabatan, dan Departemen sebanyak dua kali.
Sesudah:
Form pejabat daerah menampilkan setiap field hanya sekali, sesuai yang diharapkan.
Breaking Changes
Tidak ada breaking changes.
Migration Guide
Tidak diperlukan.