Fix: isStarred was not set in empty employee and thus error in Save

This commit is contained in:
tanshu 2018-07-16 16:59:59 +05:30
parent adb7f25c9f
commit 1c10eec4ca

View File

@ -182,7 +182,7 @@ def show_term(request):
def employee_info(id, dbsession): def employee_info(id, dbsession):
if id is None: if id is None:
employee = {'code': '(Auto)', 'isActive': True, 'costCentre': CostCentre.overall()} employee = {'code': '(Auto)', 'isStarred': False, 'isActive': True, 'costCentre': CostCentre.overall()}
else: else:
employee = dbsession.query(Employee).filter(Employee.id == id).first() employee = dbsession.query(Employee).filter(Employee.id == id).first()
if employee is None: if employee is None: