Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix(HumanResources) can't pick account in freeTimePlanning
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusweiss committed Oct 8, 2022
1 parent ff80a2c commit e93c3bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tine20/HumanResources/js/FreeTimeEditDialog.js
Expand Up @@ -264,11 +264,11 @@ Tine.HumanResources.FreeTimeEditDialog = Ext.extend(Tine.widgets.dialog.EditDial
let employee = _.get(me, 'employeePicker.selectedRecord.data', me.record.get('employee_id'));
let account = _.get(me, 'accountPicker.selectedRecord.data', me.record.get('account_id'));

this.setDisabled(!employee);
if (!employee) {
if (me.accountPicker) {
me.accountPicker.clearValue();
}
this.setDisabled(true);
return;
}
const employeeFilter = [{
Expand Down

0 comments on commit e93c3bc

Please sign in to comment.