From c5bd40793b6aa660c0b1517d43889bff7d8364a6 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 23 Dec 2022 19:06:05 -0600 Subject: [PATCH] Fix HUD display when toggling employee status in profile view --- tailbone/views/people.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tailbone/views/people.py b/tailbone/views/people.py index d5330076..6ae184f9 100644 --- a/tailbone/views/people.py +++ b/tailbone/views/people.py @@ -906,12 +906,14 @@ class PersonView(MasterView): return self.profile_start_employee_result(employee, start_date) def profile_start_employee_result(self, employee, start_date): + person = employee.person return { 'success': True, 'employee': self.get_context_employee(employee), 'employee_view_url': self.request.route_url('employees.view', uuid=employee.uuid), 'start_date': six.text_type(start_date), 'employee_history_data': self.get_context_employee_history(employee), + 'dynamic_content_title': self.get_context_content_title(person), } def profile_end_employee(self): @@ -935,12 +937,14 @@ class PersonView(MasterView): return self.profile_end_employee_result(employee, end_date) def profile_end_employee_result(self, employee, end_date): + person = employee.person return { 'success': True, 'employee': self.get_context_employee(employee), 'employee_view_url': self.request.route_url('employees.view', uuid=employee.uuid), 'end_date': six.text_type(end_date), 'employee_history_data': self.get_context_employee_history(employee), + 'dynamic_content_title': self.get_context_content_title(person), } def profile_edit_employee_history(self):