This commit is contained in:
CITE\spapacharalampous 2024-07-18 17:23:56 +03:00
parent 93cbd788f5
commit f68c79fc21
1 changed files with 1 additions and 1 deletions

View File

@ -536,7 +536,7 @@ export class PlanEditorComponent extends BaseEditor<PlanEditorModel, Plan> imple
hasErrors(sectionId: string): boolean { hasErrors(sectionId: string): boolean {
const formControlBySection = this.sectionToFieldsMap?.get(sectionId); const formControlBySection = this.sectionToFieldsMap?.get(sectionId);
if (formControlBySection == null || this.formGroup == null) return false; if (formControlBySection == null || this.formGroup == null || ((this.formGroup?.disabled??false)==true || (!this.isNew && !this.canSave))) return false;
for (let controlName of formControlBySection.fieldControlNames) { for (let controlName of formControlBySection.fieldControlNames) {
if (this.isFormControlValid(controlName) === false) { if (this.isFormControlValid(controlName) === false) {