Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
Added maxScale validation for length and precision fields (Members > …
Browse files Browse the repository at this point in the history
…Custom fields) as well.
  • Loading branch information
ndelvos78 committed Oct 25, 2017
1 parent 5e2ae02 commit 5789865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/customers/customFields/services/field-form.service.ts
Expand Up @@ -34,8 +34,8 @@ export class FieldFormService {
hint: ['', [Validators.maxLength(512)]],
description: ['', [Validators.maxLength(4096)]],
mandatory: [''],
length: ['', [FimsValidators.minValue(1)]],
precision: ['', [FimsValidators.minValue(0)]],
length: ['', [FimsValidators.minValue(1), FimsValidators.maxScale(0)]],
precision: ['', [FimsValidators.minValue(0), FimsValidators.maxScale(0)]],
minValue: ['', [FimsValidators.minValue(0)]],
maxValue: ['', [FimsValidators.minValue(1)]],
options: this.formBuilder.array([], optionValueUnique)
Expand Down

0 comments on commit 5789865

Please sign in to comment.