Is this a regression?
Yes
Severity
π Major β significantly affects usability
Please provide the branch(es) you discovered this issue in
v93
Environment Details
v93
Please provide a minimal set of steps to reproduce the issue
- data administration
- (select identity)
- open "organizational information"
- set "temporarily inactive from" to some date
- save
Description
now repeat steps 2-3 and try to clear "temporarily inactive from" field of the previous selected identity and save it.
Describe what you expected to happen versus what actually happened
I expected to see empty values, instead i see the same date, which was initially set.
Suggested Fix
i suggest to use if-conditioning from the 14th aug 61dc999cbda4592747578901034479da21570327
//imxweb/projects/qbm/src/lib/cdr/edit-date/edit-date.component.ts
private async writeValue(value: Moment | undefined): Promise<void> {
const resetMoment = this.resetValue ? moment(this.resetValue) : undefined;
if (this.control.errors || value?.isSame(this.previousValue)) {
return;
}
// rest of the code
}
the current if-condition is
const resetMoment = this.resetValue ? moment(this.resetValue) : undefined;
if (this.control.errors || value?.isSame(resetMoment) || (value === resetMoment && !value)) {
return;
}
and (value === resetMoment && !value) is what says "if both are empty, ignore it" β Blocks saving empty values
Anything else?
No response
Before submitting...
Is this a regression?
Yes
Severity
π Major β significantly affects usability
Please provide the branch(es) you discovered this issue in
v93
Environment Details
v93
Please provide a minimal set of steps to reproduce the issue
Description
now repeat steps 2-3 and try to clear "temporarily inactive from" field of the previous selected identity and save it.
Describe what you expected to happen versus what actually happened
I expected to see empty values, instead i see the same date, which was initially set.
Suggested Fix
i suggest to use if-conditioning from the 14th aug
61dc999cbda4592747578901034479da21570327the current if-condition is
and
(value === resetMoment && !value)is what says "if both are empty, ignore it" β Blocks saving empty valuesAnything else?
No response
Before submitting...