Fix: isStarred was not set in empty employee and thus error in Save
This commit is contained in:
parent
adb7f25c9f
commit
1c10eec4ca
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user