diff --git a/resources/views/marhun/marhun.blade.php b/resources/views/marhun/marhun.blade.php index 87390c9d..ab21b8fc 100644 --- a/resources/views/marhun/marhun.blade.php +++ b/resources/views/marhun/marhun.blade.php @@ -578,7 +578,7 @@ function prepareModalUpdateCaptureEachMarhun(modalTitle, marhunId, fileId) { let modal = document.querySelector('#modalpermarhunphoto-capture-update'); - modal.querySelector('#marhun_id').value = loop; + modal.querySelector('#marhun_id').value = marhunId; modal.querySelector('input[name="filemarhun_id"]').value = fileId; modal.querySelector("h5.modal-title").innerHTML = modalTitle; @@ -612,7 +612,7 @@ let fileName = $(value).data('filename'); let modal = document.querySelector('#modalpermarhunphoto-capture'); - modal.querySelector('#marhun_id').value = loop; + modal.querySelector('#marhun_id').value = marhunId; modal.querySelector('h5.modal-title').innerHTML = "Bil:" + loop + ", Id Marhun:" + marhunId + ", Marhun:" + marhun; modalOverallPhotoCapturePerMarhun.initiateTakeMarhunPhoto();