perbaikan parameter kode kecamatan yang dikirim ke server#1585
Open
pandigresik wants to merge 1 commit into
Open
perbaikan parameter kode kecamatan yang dikirim ke server#1585pandigresik wants to merge 1 commit into
pandigresik wants to merge 1 commit into
Conversation
|
🔄 AI PR Review sedang antri di server...
|
Contributor
|
mas @pandigresik cek :
|
Contributor
Author
|
Itu tabel milik opendk semua, bukan database gabungan. Di PR ini hubungannya dengan database gabungan |
Contributor
Contributor
mas @affandii06 bisa dibantu jika ini issue di opendk bisa dibuatkan issue |
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.









Fix: Pindahkan filter
kode_kecamatandari query string ke POST bodyMasalah
Semua request DataTable ke API server menggunakan
method: 'POST', namun parameterfilter[kode_kecamatan]dikirim melalui query string (http_build_querydi URL). Karena method POST, parameter di query string tidak dibaca oleh server, sehingga filter kecamatan tidak diterapkan pada hasil query.Solusi
Pindahkan
filter[kode_kecamatan]dari URL query string ke dalam POST body pada fungsidatadi setiap DataTable AJAX configuration.File yang diubah
data/data_desa/gabungan/index.blade.phpdesa-datatabledata/pembangunan/gabungan/index.blade.phppembangunan-datatabledata/penduduk/gabungan/index.blade.phpsync-penduduk-opendk-datatabledata/keluarga/gabungan/index.blade.phpkeluarga-datatabledata/anggaran_desa/gabungan/index.blade.phpapbdes-datatabledata/laporan-apbdes/gabungan/index.blade.phplaporan_apbdes-datatabledata/laporan-penduduk/gabungan/index.blade.phplaporan-penduduk-datatabledata/program_bantuan/gabungan/index.blade.phpbantuan-datatabledata/program_bantuan/gabungan/show.blade.phpbantuan-peserta-datatablePerubahan per file
Sebelum:
Sesudah:
Catatan
program_bantuan/gabungan/show.blade.phpbagian AJAX pertama (GET request untuk detail program) tetap menggunakan query string karena memang method GET — tidak diubah.