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'])