From 60b0884cc2193c499ba802d54538dc3ecc16e936 Mon Sep 17 00:00:00 2001 From: zeeshan Date: Mon, 25 May 2026 16:51:33 +0530 Subject: [PATCH] Team 2 Changes --- ...0546-60124e99-0147-42d9-93ad-d2eda3d9f722.blade.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/views/form/rapport-team2/1756910546-60124e99-0147-42d9-93ad-d2eda3d9f722.blade.php b/resources/views/form/rapport-team2/1756910546-60124e99-0147-42d9-93ad-d2eda3d9f722.blade.php index 1f30b946..2a18cdb7 100644 --- a/resources/views/form/rapport-team2/1756910546-60124e99-0147-42d9-93ad-d2eda3d9f722.blade.php +++ b/resources/views/form/rapport-team2/1756910546-60124e99-0147-42d9-93ad-d2eda3d9f722.blade.php @@ -472,8 +472,8 @@ } let docid = $('#execution-contact_id option').map(function() { - if ($(this).text().trim() == selected['contact_id']) return this; - }).attr('value') + if ($(this).text().trim() == selected['contact_id'] || $(this).val().trim() == selected['cont_id']) return this; + }).attr('value') $('#execution-contact_id').val(docid) @@ -612,9 +612,9 @@ // $('#execution-'+k).val(selected[k]); } - let docid = $('#execution-contact_id option').map(function() { - if ($(this).text().trim() == selected['contact_id']) return this; - }).attr('value') + let docid = $('#execution-contact_id option').map(function() { + if ($(this).text().trim() == selected['contact_id'] || $(this).val().trim() == selected['cont_id']) return this; + }).attr('value') $('#execution-contact_id').val(docid) $('#execution-id').val(selected['id'])