fixed photo is not save the correct if new person and partner also the change name

This commit is contained in:
2026-03-28 16:54:41 +11:00
parent 40515d0e3a
commit 3ba26bee33
3 changed files with 13 additions and 5 deletions
+9 -2
View File
@@ -67,9 +67,9 @@ export class AddPhoto implements OnInit, OnDestroy {
});
}
else {
//new cleaner
//new photo
const ward:LookupEdit = {
id: -1, description: '', codeId: maxcodeId, type: this.selType, active: true,
id, description: '', codeId: maxcodeId, type: this.selType, active: true,
};
this.assignValue(ward);
@@ -157,7 +157,14 @@ export class AddPhoto implements OnInit, OnDestroy {
}
upload(e: Event): void {
e.preventDefault();
if (this.files.length > 0)
{
this.ref.close(this.files);
}
else
{
this.messageService.add({severity: 'error', summary: 'No File to upload file', detail: 'select file first then upload file'});
}
}
cancel(e: Event): void {