diff --git a/odex25_mobile/odex_mobile/controllers/rest_api_v2/leave.py b/odex25_mobile/odex_mobile/controllers/rest_api_v2/leave.py index 574c92773..39c82d6c5 100644 --- a/odex25_mobile/odex_mobile/controllers/rest_api_v2/leave.py +++ b/odex25_mobile/odex_mobile/controllers/rest_api_v2/leave.py @@ -234,7 +234,7 @@ class LeaveController(http.Controller): "date_to": body["end_date"], "name": body["description"] if body.get("description") else "", "holiday_status_id": int(body["type_id"]), - "delegate_acc": body["delegated_permission"], + "delegate_acc": False if body["delegated_permission"] in ("false","False",'') else True , # 'replace_by': int(body['replacement_id']) if body['replacement_id'] else False } if 'ticket' in body and body['ticket']: