From 1c10eec4ca2c9d7723e2f2dd55ebcb9f6ea9b2b8 Mon Sep 17 00:00:00 2001 From: tanshu Date: Mon, 16 Jul 2018 16:59:59 +0530 Subject: [PATCH] Fix: isStarred was not set in empty employee and thus error in Save --- brewman/views/employee.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brewman/views/employee.py b/brewman/views/employee.py index 0da0b3ec..848eda61 100644 --- a/brewman/views/employee.py +++ b/brewman/views/employee.py @@ -182,7 +182,7 @@ def show_term(request): def employee_info(id, dbsession): if id is None: - employee = {'code': '(Auto)', 'isActive': True, 'costCentre': CostCentre.overall()} + employee = {'code': '(Auto)', 'isStarred': False, 'isActive': True, 'costCentre': CostCentre.overall()} else: employee = dbsession.query(Employee).filter(Employee.id == id).first() if employee is None: