From d0fb75442b34d82a66d2f0d28e2b8f48ae859398 Mon Sep 17 00:00:00 2001 From: Horilla Date: Mon, 1 Dec 2025 14:43:12 +0530 Subject: [PATCH] [FIX] EMPLOYEE: Fixed mismatch between frontend and backend by replacing job_id with job_position_id in AJAX request for job roles fetching --- .../templates/employee/update_form/work_details.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/horilla_theme/templates/employee/update_form/work_details.html b/horilla_theme/templates/employee/update_form/work_details.html index 171762b1d..dc5fcae90 100644 --- a/horilla_theme/templates/employee/update_form/work_details.html +++ b/horilla_theme/templates/employee/update_form/work_details.html @@ -107,8 +107,7 @@ let url, dropdownId, createText, emptyText; const data = - id === "#dynamicDept" ? { department_id: value } : { job_id: value }; - + id === "#dynamicDept" ? { department_id: value } : { job_position_id: value }; if (id === "#dynamicDept") { url = '{% url "get-job-positions" %}'; dropdownId = "#id_job_position_id"; @@ -207,7 +206,7 @@ url: '{% url "get-job-roles" %}', method: "GET", data: { - job_id: selectedJobPosition, + job_position_id: selectedJobPosition, }, success: function (data) { $("#id_job_role_id").empty();