Usability improvement on calendar's work week edition
When marking a work day as not inhereting, the initial value is the parent's calendar value. FEA: ItEr74S04BugFixing
This commit is contained in:
parent
1c8f0ca864
commit
3f875ac898
1 changed files with 4 additions and 3 deletions
|
|
@ -317,9 +317,10 @@ public class BaseCalendarModel extends IntegrationEntityModel implements
|
|||
@Override
|
||||
public void unsetDefault(Days day) {
|
||||
if (getBaseCalendar() != null) {
|
||||
getBaseCalendar().setCapacityAt(day,
|
||||
Capacity.zero().overAssignableWithoutLimit(true),
|
||||
selectedDate);
|
||||
Capacity previousCapacity = getBaseCalendar()
|
||||
.getCapacityConsideringCalendarDatasOn(selectedDate, day);
|
||||
getBaseCalendar()
|
||||
.setCapacityAt(day, previousCapacity, selectedDate);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue