mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
#4338 Warenausgabe - "Bearbeiten" bringt Fehler
This commit is contained in:
@@ -173,6 +173,9 @@ export class SharedGoodsInOutOrderEditComponent implements OnChanges, OnDestroy
|
||||
}
|
||||
|
||||
async updateNotificationsGroup() {
|
||||
if (this.items.length === 0) {
|
||||
return;
|
||||
}
|
||||
const orderId = this.items[0].orderId;
|
||||
|
||||
try {
|
||||
|
||||
@@ -108,7 +108,10 @@ export class UiSelectComponent extends UiFormControlDirective<any> implements Co
|
||||
}
|
||||
|
||||
writeValue(obj: any): void {
|
||||
this.setValue(obj, false);
|
||||
this.setValue(obj, {
|
||||
emitEvent: false,
|
||||
touched: false,
|
||||
});
|
||||
}
|
||||
|
||||
registerOnChange(fn: any): void {
|
||||
@@ -126,16 +129,18 @@ export class UiSelectComponent extends UiFormControlDirective<any> implements Co
|
||||
}
|
||||
}
|
||||
|
||||
setValue(value: any, emitEvent: boolean = true) {
|
||||
setValue(value: any, { emitEvent, touched }: { emitEvent?: boolean; touched?: boolean } = {}) {
|
||||
if (this.value !== value) {
|
||||
this.value = value;
|
||||
|
||||
if (emitEvent) {
|
||||
if (emitEvent ?? true) {
|
||||
this.onChange(this.value);
|
||||
}
|
||||
}
|
||||
|
||||
this.onTouched();
|
||||
if (touched ?? true) {
|
||||
this.onTouched();
|
||||
}
|
||||
}
|
||||
this.cdr.markForCheck();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user