From 43c15092dd35fb142c34ee1ea7c3cf9b4ed118f9 Mon Sep 17 00:00:00 2001 From: "afiq.hamzah" Date: Sun, 27 Nov 2022 18:45:00 +0800 Subject: [PATCH] Fix selector when assigning marhun id value --- resources/views/marhun/marhun.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();