fixed photo is not save the correct if new person and partner also the change name
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user