EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
URL-multiple validation empty input
Yuriiba199cc72934
diff --git a/client/src/views/fields/array.ts b/client/src/views/fields/array.tsindex 385893b821..d39a278c0c 100644--- a/client/src/views/fields/array.ts+++ b/client/src/views/fields/array.ts@@ -307,9 +307,7 @@ class ArrayFieldView<this.allowCustomOptions = false;}- if (this.type === 'array') {- this.validations.push('noInputValue')- }+ this.validations.push(() => this.validateNoInputValue());}/**@@ -1077,7 +1075,6 @@ class ArrayFieldView<}- // noinspection JSUnusedGlobalSymbolsprotected validateNoInputValue(): boolean {if (!this.element) {return false;diff --git a/client/src/views/fields/checklist.ts b/client/src/views/fields/checklist.tsindex 2bec012a63..f07a60207d 100644--- a/client/src/views/fields/checklist.ts+++ b/client/src/views/fields/checklist.ts@@ -165,6 +165,10 @@ class ChecklistFieldView<return false;}++ protected validateNoInputValue(): boolean {+ return false;+ }}export default ChecklistFieldView;diff --git a/client/src/views/fields/multi-enum.ts b/client/src/views/fields/multi-enum.tsindex 820c056a30..158946dd63 100644--- a/client/src/views/fields/multi-enum.ts+++ b/client/src/views/fields/multi-enum.ts@@ -324,6 +324,10 @@ class MultiEnumFieldView<return false;}++ protected validateNoInputValue(): boolean {+ return false;+ }}export default MultiEnumFieldView;