CVE-2021-4111: Improper Input Validation (CWE-20)
value: yetiforcecrm is vulnerable to Business Logic Errors
CWE description: The product receives input or data, but it does
        not validate or incorrectly validates that the input has the
        properties that are required to process the data safely and
        correctly.
CVSS v3 base score: 4.3
Published: 2021-12-15T09:15Z
Repository: https://github.com/yetiforcecompany/yetiforcecrm
Language: PHP
Files changed: config/version.php, install/install_schema/data.sql, layouts/basic/modules/Vtiger/Edit/CurrenciesModal.tpl, layouts/basic/modules/Vtiger/Edit/Field/MultiCurrency.tpl, modules/Vtiger/models/Field.php, modules/Vtiger/uitypes/MultiCurrency.php, public_html/layouts/resources/validator/BaseValidator.js, public_html/layouts/resources/validator/FieldValidator.js
Commit date: 2021-12-13 14:43:29 +0100
Commit message: Improved validation for multi-currency fields

Diff: diff --git a/config/version.php b/config/version.php
index f427141ca5..4b88d48449 100644
--- a/config/version.php
+++ b/config/version.php
@@ -1,7 +1,7 @@
 <?php
 
 return [
-	'appVersion' => '6.3.2',
-	'patchVersion' => '2021.12.12',
+	'appVersion' => '6.3.3',
+	'patchVersion' => '2021.12.13',
 	'lib_roundcube' => '0.2.3',
 ];
diff --git a/install/install_schema/data.sql b/install/install_schema/data.sql
index f3e64f02f6..be02a1cd94 100644
--- a/install/install_schema/data.sql
+++ b/install/install_schema/data.sql
@@ -3580,11 +3580,11 @@ insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generate
 insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (14,188,'productsheet','vtiger_products',1,1,'productsheet','Product Sheet',0,2,'','200',17,31,1,'V~O',1,NULL,'BAS',1,'',0,'',NULL,0,0,0,0,'',NULL);
 insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (14,189,'glacct','vtiger_products',1,15,'glacct','GL Account',0,2,'','200',20,31,1,'V~O',1,NULL,'BAS',1,'',0,'',NULL,0,0,0,0,'',NULL);
 insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (14,190,'createdtime','vtiger_crmentity',1,70,'createdtime','Created Time',0,0,'',NULL,19,31,2,'DT~O',3,NULL,'BAS',0,'',0,'',NULL,0,0,0,0,'',NULL);
 insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (14,191,'modifiedtime','vtiger_crmentity',1,70,'modifiedtime','Modified Time',0,0,'',NULL,21,31,2,'DT~O',3,NULL,'BAS',0,'',0,'',NULL,0,0,0,0,'',NULL);
 insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (14,192,'modifiedby','vtiger_crmentity',1,52,'modifiedby','Last Modified By',0,0,'','65535',22,31,2,'V~O',3,NULL,'BAS',0,'',0,'',NULL,0,0,0,0,'',NULL);
-insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (14,193,'unit_price','vtiger_products',1,360,'unit_price','Unit Price',0,0,'','65535',1,32,1,'V~O',2,3,'BAS',0,'',1,'',NULL,0,0,0,0,'',NULL);
+insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (14,193,'unit_price','vtiger_products',1,360,'unit_price','Unit Price',0,0,'','0,99999999',1,32,1,'V~O',2,3,'BAS',0,'',1,'',NULL,0,0,0,0,'',NULL);
 insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (14,194,'commissionrate','vtiger_products',1,365,'commissionrate','Commission Rate',0,2,'','99999',2,32,2,'NN~O',1,NULL,'BAS',1,'',0,'',NULL,0,0,0,0,'',NULL);
 insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (14,196,'usageunit','vtiger_products',1,15,'usageunit','Usage Unit',0,2,'','200',1,33,1,'V~O',1,NULL,'ADV',1,'',0,'',NULL,0,0,0,0,'',NULL);
 insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (14,197,'qty_per_unit','vtiger_products',1,1,'qty_per_unit','Qty/Unit',0,2,'','999999999',2,33,1,'N~O',1,NULL,'ADV',1,'',0,'',NULL,0,0,0,0,'',NULL);
 insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (14,198,'qtyinstock','vtiger_products',1,1,'qtyinstock','Qty In Stock',0,2,'','1.0E+22',3,33,10,'NN~O',0,7,'ADV',1,'',1,'',NULL,0,0,0,0,'',NULL);
 insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (14,199,'reorderlevel','vtiger_products',1,1,'reorderlevel','Reorder Level',0,2,'','-2147483648,2147483647',4,33,1,'I~O',1,NULL,'ADV',1,'',0,'',NULL,0,0,0,0,'',NULL);
@@ -5167,11 +5167,11 @@ insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generate
 insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (13,2812,'idle_datatime','vtiger_troubletickets',1,79,'idle_datatime','FL_IDLE_DATE_TIME',0,2,'',NULL,0,444,2,'DT~O',1,0,'BAS',1,'Detail',0,'',NULL,0,0,0,0,'',NULL);
 insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (13,2813,'closing_datatime','vtiger_troubletickets',1,79,'closing_datatime','FL_CLOSING_DATE_TIME',0,2,'',NULL,0,444,2,'DT~O',1,0,'BAS',1,'Detail',0,'',NULL,0,0,0,0,'',NULL);
 insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (13,2814,'response_expected','vtiger_troubletickets',1,79,'response_expected','FL_RESPONSE_EXPECTED',0,2,'',NULL,0,444,2,'DT~O',1,0,'BAS',1,'Detail',1,'','',0,0,0,0,'',NULL);
 insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (13,2815,'solution_expected','vtiger_troubletickets',1,79,'solution_expected','FL_SOLUTION_EXPECTED',0,2,'',NULL,0,444,2,'DT~O',1,0,'BAS',1,'Detail',1,'','',0,0,0,0,'',NULL);
 insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (13,2816,'idle_expected','vtiger_troubletickets',1,79,'idle_expected','FL_IDLE_DATE_EXPECTED',0,2,'',NULL,0,444,2,'DT~O',1,0,'BAS',1,'Detail',0,'',NULL,0,0,0,0,'',NULL);
-insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (14,2817,'purchase','vtiger_products',1,360,'purchase','FL_PURCHASE',0,2,'','65535',6,32,1,'V~O',2,3,'BAS',0,'',1,'',NULL,0,0,0,0,'',NULL);
+insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (14,2817,'purchase','vtiger_products',1,360,'purchase','FL_PURCHASE',0,2,'','0,99999999',6,32,1,'V~O',2,3,'BAS',0,'',1,'',NULL,0,0,0,0,'',NULL);
 insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (90,2818,'ssingleorders_method_payments','u_yf_ssingleorders',1,16,'payment_methods','FL_PAYMENTS_METHOD',0,2,'','255',16,284,1,'V~O',1,0,'BAS',1,'',0,'',NULL,0,0,0,0,'',NULL);
 insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (35,2819,'purchase','vtiger_service',1,360,'purchase','FL_COST',0,2,'','65535',4,92,1,'V~O',2,3,'BAS',0,'',1,'',NULL,0,0,0,0,'',NULL);
 insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (15,2821,'accountid','vtiger_faq',1,10,'accountid','FL_ACCOUNT',0,2,'','4294967295',8,37,1,'V~O',1,0,'BAS',1,'',0,'',NULL,0,0,0,0,'',NULL);
 insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (6,2822,'taxes','vtiger_account',1,303,'taxes','FL_TAXES',0,2,'','65535',11,198,1,'V~O',1,0,'BAS',1,'',0,'',NULL,0,0,0,0,'',NULL);
 insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (6,2823,'accounts_available_taxes','vtiger_account',1,33,'accounts_available_taxes','FL_AVAILABLE_TAXES',0,2,'','65535',3,439,1,'V~O',1,0,'BAS',1,'',0,'',NULL,0,0,0,0,'',NULL);
diff --git a/layouts/basic/modules/Vtiger/Edit/CurrenciesModal.tpl b/layouts/basic/modules/Vtiger/Edit/CurrenciesModal.tpl
index f309b50d63..b9173cd655 100644
--- a/layouts/basic/modules/Vtiger/Edit/CurrenciesModal.tpl
+++ b/layouts/basic/modules/Vtiger/Edit/CurrenciesModal.tpl
@@ -7,11 +7,11 @@
 					<h5 class="modal-title">
 						<span class="adminIcon-currencies mr-1"></span>
 						{\App\Language::translate($FIELD_MODEL->getFieldLabel(), $MODULE_NAME)}
 					</h5>
 					<button type="button" class="close" data-dismiss="modal"
-							title="{\App\Language::translate('LBL_CLOSE')}">
+						title="{\App\Language::translate('LBL_CLOSE')}">
 						<span aria-hidden="true">&times;</span>
 					</button>
 				</div>
 				<div class="modal-body">
 					<table class="table table-bordered">
@@ -32,51 +32,51 @@
 												<span class="ml-1">({$ITEM['symbol']})</span>
 											</span>
 										</span>
 										<span class="ml-1">
 											<input type="checkbox" value="1"
-												   id="cur_{$CURRENCY_ID}_check"
-												   class="small float-right js-enable-currency"
-												   data-js="change">
+												id="cur_{$CURRENCY_ID}_check"
+												class="small float-right js-enable-currency"
+												data-js="change">
 										</span>
 									</span>
 								</td>
 								<td class="align-middle">
 									<div class="row justify-content-center">
 										<input name="{$ITEM['name']}" type="text" value=""
-											   size="10" id="{$ITEM['name']}"
-											   class="col-md-9 js-format-numer js-converted-price form-control"
-											   data-validation-engine="validate[funcCall[Vtiger_Currency_Validator_Js.invokeValidation]]"
-											   data-fieldinfo="{\App\Purifier::encodeHtml(\App\Json::encode($ITEM.fieldInfo))}"
-											   data-js="value" disabled="disabled"/>
+											size="10" id="{$ITEM['name']}"
+											class="col-md-9 js-format-numer js-converted-price form-control"
+											data-validation-engine="validate[funcCall[Vtiger_Currency_Validator_Js.invokeValidation]]"
+											data-fieldinfo="{\App\Purifier::encodeHtml(\App\Json::encode($ITEM.fieldInfo))}"
+											data-js="value" disabled="disabled" />
 									</div>
 								</td>
 								<td class="align-middle">
 									<div class="row justify-content-center">
-										<input name="currencies[{$CURRENCY_ID}]['rate']"
-											   value="{App\Fields\Double::formatToDisplay($ITEM['conversionRate'], false)}"
-											   class="col-md-9 js-conversion-rate form-control" type="text" size="10"
-											   readonly="readonly" disabled="disabled">
+										<input name="currencies[{$CURRENCY_ID}][rate]"
+											value="{App\Fields\Double::formatToDisplay($ITEM['conversionRate'], false)}"
+											class="col-md-9 js-conversion-rate form-control" type="text" size="10"
+											readonly="readonly" disabled="disabled">
 									</div>
 								</td>
 								<td class="align-middle">
 									<div class="row justify-content-center">
 										<button type="button" class="btn btn-light js-currency-reset resetButton"
-												id="cur_reset{$CURRENCY_ID}"
-												value="{\App\Language::translate('LBL_RESET',$MODULE_NAME)}"
-												data-js="click">
+											id="cur_reset{$CURRENCY_ID}"
+											value="{\App\Language::translate('LBL_RESET',$MODULE_NAME)}"
+											data-js="click">
 											<span class="fas fa-undo mr-1"></span>
 											{\App\Language::translate('LBL_RESET',$MODULE_NAME)}
 										</button>
 									</div>
 								</td>
 								<td class="align-middle">
 									<div class="row justify-content-center">
 										<input name="baseCurrencyRadio" value="{$ITEM['name']}"
-											   class="js-base-currency" type="radio" disabled="disabled"
-											   title="{\App\Language::translate('LBL_BASE_CURRENCY')}"
-											   data-js="checked"/>
+											class="js-base-currency" type="radio" disabled="disabled"
+											title="{\App\Language::translate('LBL_BASE_CURRENCY')}"
+											data-js="checked" />
 									</div>
 								</td>
 							</tr>
 						{/foreach}
 					</table>
diff --git a/layouts/basic/modules/Vtiger/Edit/Field/MultiCurrency.tpl b/layouts/basic/modules/Vtiger/Edit/Field/MultiCurrency.tpl
index 8e794c0c90..610ac12809 100644
--- a/layouts/basic/modules/Vtiger/Edit/Field/MultiCurrency.tpl
+++ b/layouts/basic/modules/Vtiger/Edit/Field/MultiCurrency.tpl
@@ -1,9 +1,10 @@
 {*<!-- {[The file is published on the basis of YetiForce Public License 4.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} -->*}
 {strip}
 	<!-- tpl-Base-Edit-Field-MultiCurrency -->
 	{assign var=SPECIAL_VALIDATOR value=$FIELD_MODEL->getValidator()}
+	{assign var=FIELD_INFO value=\App\Purifier::encodeHtml(\App\Json::encode($FIELD_MODEL->getFieldInfo()))}
 	{assign var=FIELD_NAME value=$FIELD_MODEL->getName()}
 	{assign var="MODULE_NAME" value=$FIELD_MODEL->getModuleName()}
 	{assign var="SYMBOL_PLACEMENT_ON_RIGHT" value=$USER_MODEL->get('currency_symbol_placement') eq '1.0$'}
 	{assign var="CURRENCY_SYMBOL" value=$USER_MODEL->get('currency_symbol')}
 	{assign var=FIELD_VALUE value=$FIELD_MODEL->getUITypeModel()->getEditViewFormatData($FIELD_MODEL->get('fieldvalue'))}
@@ -26,12 +27,12 @@
 			{if !$SYMBOL_PLACEMENT_ON_RIGHT}
 				{FUNC_CURRENCY_SYMBOL_PLACEMENT CURRENCY_SYMBOL=$CURRENCY_SYMBOL}
 			{/if}
 			<input id="{$MODULE_NAME}-editview-fieldname-{$FIELD_NAME}" type="text" value="{$FIELD_MODEL->getEditViewDisplayValue($FIELD_MODEL->get('fieldvalue'), $RECORD)}"
 				class="col-md-12 js-multicurrency-field js-format-numer form-control{if $SYMBOL_PLACEMENT_ON_RIGHT} textAlignRight{/if}"
-				title="{\App\Language::translate($FIELD_MODEL->getFieldLabel(), $MODULE_NAME)}" tabindex="{$TABINDEX}"
-				{if $FIELD_MODEL->isEditableReadOnly()}disabled="disabled" {else}data-validation-engine="validate[{if $FIELD_MODEL->isMandatory() eq true} required,{/if}funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" {/if}>
+				title="{\App\Language::translate($FIELD_MODEL->getFieldLabel(), $MODULE_NAME)}" tabindex="{$TABINDEX}" data-fieldinfo="{$FIELD_INFO}"
+				{if $FIELD_MODEL->isEditableReadOnly()} disabled="disabled" {else}data-validation-engine="validate[{if $FIELD_MODEL->isMandatory() eq true} required,{/if}funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" {/if} {if !empty($SPECIAL_VALIDATOR)}data-validator='{\App\Purifier::encodeHtml(\App\Json::encode($SPECIAL_VALIDATOR))}' {/if}>
 			{if $SYMBOL_PLACEMENT_ON_RIGHT}
 				{FUNC_CURRENCY_SYMBOL_PLACEMENT CURRENCY_SYMBOL=$CURRENCY_SYMBOL}
 			{/if}
 			{if !$FIELD_MODEL->isEditableReadOnly()}
 				<div class="input-group-append">
diff --git a/modules/Vtiger/models/Field.php b/modules/Vtiger/models/Field.php
index 2deed3383a..7b676962b7 100644
--- a/modules/Vtiger/models/Field.php
+++ b/modules/Vtiger/models/Field.php
@@ -587,17 +587,17 @@ class Vtiger_Field_Model extends vtlib\Field
 				$picklistValues = \App\Fields\Picklist::getRoleBasedValues($this->getName(), \App\User::getCurrentUserModel()->getRole());
 			} else {
 				$picklistValues = App\Fields\Picklist::getValuesName($this->getName());
 			}
 			foreach ($picklistValues as $value) {
-				$fieldPickListValues[$value] = \App\Language::translate($value, $this->getModuleName(),false,false);
+				$fieldPickListValues[$value] = \App\Language::translate($value, $this->getModuleName(), false, false);
 			}
 			// Protection against deleting a value that does not exist on the list
 			if ('picklist' === $fieldDataType) {
 				$fieldValue = $this->get('fieldvalue');
 				if (!empty($fieldValue) && !isset($fieldPickListValues[$fieldValue])) {
-					$fieldPickListValues[$fieldValue] = \App\Language::translate($fieldValue, $this->getModuleName(),false,false);
+					$fieldPickListValues[$fieldValue] = \App\Language::translate($fieldValue, $this->getModuleName(), false, false);
 					$this->set('isEditableReadOnly', true);
 				}
 			}
 		} elseif (method_exists($this->getUITypeModel(), 'getPicklistValues')) {
 			$fieldPickListValues = $this->getUITypeModel()->getPicklistValues();
@@ -1140,15 +1140,15 @@ class Vtiger_Field_Model extends vtlib\Field
 	{
 		return $this->getPermissions(false);
 	}
 
 	/**
-	 * Function returns Client Side Validators name.
+	 * Gets default validator.
 	 *
-	 * @return <Array> [name=>Name of the Validator, params=>Extra Parameters]
+	 * @return array
 	 */
-	public function getValidator()
+	public function getDefaultValidator(): array
 	{
 		$validator = [];
 		$fieldName = $this->getName();
 		switch ($fieldName) {
 			case 'birthday':
@@ -1223,10 +1223,20 @@ class Vtiger_Field_Model extends vtlib\Field
 				break;
 		}
 		return $validator;
 	}
 
+	/**
+	 * Function returns Client Side Validators name.
+	 *
+	 * @return array [name=>Name of the Validator, params=>Extra Parameters]
+	 */
+	public function getValidator()
+	{
+		return method_exists($this->getUITypeModel(), 'getValidator') ? $this->getUITypeModel()->getValidator() : $this->getDefaultValidator();
+	}
+
 	/**
 	 * Function to retrieve display value in edit view.
 	 *
 	 * @param mixed               $value
 	 * @param Vtiger_Record_Model $recordModel
diff --git a/modules/Vtiger/uitypes/MultiCurrency.php b/modules/Vtiger/uitypes/MultiCurrency.php
index a85cc53bf3..0da0b8a988 100644
--- a/modules/Vtiger/uitypes/MultiCurrency.php
+++ b/modules/Vtiger/uitypes/MultiCurrency.php
@@ -26,33 +26,49 @@ class Vtiger_MultiCurrency_UIType extends Vtiger_Base_UIType
 			$data['currencies'][$key]['price'] = App\Fields\Double::formatToDb($currency['price']);
 		}
 		return \App\Json::encode($data);
 	}
 
+	/**
+	 * Get validator.
+	 *
+	 * @return array
+	 */
+	public function getValidator(): array
+	{
+		return [['name' => 'Currency']];
+	}
+
 	/** {@inheritdoc} */
 	public function validate($value, $isUserFormat = false)
 	{
 		if (empty($value)) {
 			return;
 		}
 		if (\is_string($value)) {
 			$value = \App\Json::decode($value);
 		}
 		if (!\is_array($value)) {
-			throw new \App\Exceptions\Security('ERR_ILLEGAL_FIELD_VALUE||' . $this->getFieldModel()->getFieldName() . '||' . $this->getFieldModel()->getModuleName() . '||' . $value, 406);
+			throw new \App\Exceptions\Security('ERR_ILLEGAL_FIELD_VALUE||' . $this->getFieldModel()->getName() . '||' . $this->getFieldModel()->getModuleName() . '||' . $value, 406);
 		}
 		$currencies = \App\Fields\Currency::getAll(true);
 		foreach ($value['currencies'] ?? [] as $id => $currency) {
 			if (!isset($currencies[$id])) {
-				throw new \App\Exceptions\Security('ERR_ILLEGAL_FIELD_VALUE||' . $this->getFieldModel()->getFieldName() . '||' . $this->getFieldModel()->getModuleName() . '||' . $id, 406);
+				throw new \App\Exceptions\Security('ERR_ILLEGAL_FIELD_VALUE||' . $this->getFieldModel()->getName() . '||' . $this->getFieldModel()->getModuleName() . '||' . $id, 406);
 			}
 			$price = $currency['price'];
 			if ($isUserFormat) {
 				$price = App\Fields\Double::formatToDb($price);
 			}
 			if (!is_numeric($price)) {
-				throw new \App\Exceptions\Security('ERR_ILLEGAL_FIELD_VALUE||' . $this->getFieldModel()->getFieldName() . '||' . $this->getFieldModel()->getModuleName() . '||' . $price, 406);
+				throw new \App\Exceptions\Security('ERR_ILLEGAL_FIELD_VALUE||' . $this->getFieldModel()->getName() . '||' . $this->getFieldModel()->getModuleName() . '||' . $price, 406);
+			}
+			if ($maximumLength = $this->getFieldModel()->get('maximumlength')) {
+				[$minimumLength, $maximumLength] = false !== strpos($maximumLength, ',') ? explode(',', $maximumLength) : [-$maximumLength, $maximumLength];
+				if ((float) $minimumLength > $price || (float) $maximumLength < $price) {
+					throw new \App\Exceptions\Security('ERR_VALUE_IS_TOO_LONG||' . $this->getFieldModel()->getName() . '||' . $this->getFieldModel()->getModuleName() . "||{$maximumLength} < {$price} < {$minimumLength}", 406);
+				}
 			}
 		}
 	}
 
 	/** {@inheritdoc} */
@@ -129,16 +145,16 @@ class Vtiger_MultiCurrency_UIType extends Vtiger_Base_UIType
 	 * @return void
 	 */
 	public function getCurrencies()
 	{
 		$priceDetails = [];
-		$params = ['uitype' => 71, 'displaytype' => 1, 'typeofdata' => 'N~O', 'isEditableReadOnly' => false, 'maximumlength' => '99999999999999999'];
+		$params = ['uitype' => 71, 'displaytype' => 1, 'typeofdata' => 'N~O', 'isEditableReadOnly' => false, 'maximumlength' => $this->getFieldModel()->get('maximumlength')];
 		$fieldModel = new \Vtiger_Field_Model();
 		$fieldModel->setModule($this->getFieldModel()->getModule());
 		$fieldInfo = $fieldModel->setData($params)->getFieldInfo();
 		foreach (\App\Fields\Currency::getAll(true) as $id => $currency) {
-			$name = "currencies[$id]['value']";
+			$name = "currencies[$id][value]";
 			$fieldInfo['name'] = $name;
 			$priceDetails[$id] = [
 				'name' => $name,
 				'conversionRate' => $currency['conversion_rate'],
 				'symbol' => $currency['currency_symbol'],
diff --git a/public_html/layouts/resources/validator/BaseValidator.js b/public_html/layouts/resources/validator/BaseValidator.js
index 4e4df66ee8..501b0f28f9 100644
--- a/public_html/layouts/resources/validator/BaseValidator.js
+++ b/public_html/layouts/resources/validator/BaseValidator.js
@@ -25,11 +25,11 @@ jQuery.Class(
 				if (options.isError === true) {
 					return;
 				}
 			}
 			let listOfValidators = Vtiger_Base_Validator_Js.getValidator(field);
-			for (let i = 0; i < listOfValidators.length; i++) {
+			for (let i in listOfValidators) {
 				let validatorList = listOfValidators[i],
 					validatorName = validatorList.name,
 					validatorInstance = new validatorName(),
 					result;
 				validatorInstance.setElement(field);
@@ -75,16 +75,16 @@ jQuery.Class(
 					listOfValidators.push({ name: value });
 				}
 			}
 			if (fieldData.hasOwnProperty(dataValidator)) {
 				let specialValidators = fieldData[dataValidator];
-				for (key in specialValidators) {
+				for (let s in specialValidators) {
 					//IE for loop fix
-					if (!specialValidators.hasOwnProperty(key)) {
+					if (!specialValidators.hasOwnProperty(s)) {
 						continue;
 					}
-					let specialValidator = specialValidators[key],
+					let specialValidator = specialValidators[s],
 						tempSpecialValidator = jQuery.extend({}, specialValidator),
 						validatorOfNames = Vtiger_Base_Validator_Js.getValidatorClassName(specialValidator.name);
 					if (validatorOfNames !== '') {
 						tempSpecialValidator.name = validatorOfNames;
 						if (!jQuery.isEmptyObject(tempSpecialValidator)) {
diff --git a/public_html/layouts/resources/validator/FieldValidator.js b/public_html/layouts/resources/validator/FieldValidator.js
index a6369a22e7..2396023dd5 100644
--- a/public_html/layouts/resources/validator/FieldValidator.js
+++ b/public_html/layouts/resources/validator/FieldValidator.js
@@ -1021,14 +1021,20 @@ Vtiger_Base_Validator_Js(
 				errorInfo = app.vtranslate('JS_ACCEPT_POSITIVE_NUMBER');
 				this.setError(errorInfo);
 				return false;
 			}
 			const maximumLength = typeof fieldData.fieldinfo !== 'undefined' ? fieldData.fieldinfo.maximumlength : null;
-			if (maximumLength && strippedValue > parseFloat(maximumLength)) {
-				errorInfo = app.vtranslate('JS_ERROR_MAX_VALUE');
-				this.setError(errorInfo);
-				return false;
+			if (maximumLength) {
+				let ranges = maximumLength.split(',');
+				if (
+					(ranges.length === 2 && (strippedValue > parseFloat(ranges[1]) || strippedValue < parseFloat(ranges[0]))) ||
+					(ranges.length === 1 && (strippedValue > parseFloat(ranges[0]) || strippedValue < 0))
+				) {
+					errorInfo = app.vtranslate('JS_ERROR_MAX_VALUE');
+					this.setError(errorInfo);
+					return false;
+				}
 			}
 			return true;
 		}
 	}
 );

Vulnerable code: 	'appVersion' => '6.3.2',
	'patchVersion' => '2021.12.12',
insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (14,193,'unit_price','vtiger_products',1,360,'unit_price','Unit Price',0,0,'','65535',1,32,1,'V~O',2,3,'BAS',0,'',1,'',NULL,0,0,0,0,'',NULL);
insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (14,2817,'purchase','vtiger_products',1,360,'purchase','FL_PURCHASE',0,2,'','65535',6,32,1,'V~O',2,3,'BAS',0,'',1,'',NULL,0,0,0,0,'',NULL);
							title="{\App\Language::translate('LBL_CLOSE')}">
												   id="cur_{$CURRENCY_ID}_check"
												   class="small float-right js-enable-currency"
												   data-js="change">
											   size="10" id="{$ITEM['name']}"
											   class="col-md-9 js-format-numer js-converted-price form-control"
											   data-validation-engine="validate[funcCall[Vtiger_Currency_Validator_Js.invokeValidation]]"
											   data-fieldinfo="{\App\Purifier::encodeHtml(\App\Json::encode($ITEM.fieldInfo))}"
											   data-js="value" disabled="disabled"/>
										<input name="currencies[{$CURRENCY_ID}]['rate']"
											   value="{App\Fields\Double::formatToDisplay($ITEM['conversionRate'], false)}"
											   class="col-md-9 js-conversion-rate form-control" type="text" size="10"
											   readonly="readonly" disabled="disabled">
												id="cur_reset{$CURRENCY_ID}"
												value="{\App\Language::translate('LBL_RESET',$MODULE_NAME)}"
												data-js="click">
											   class="js-base-currency" type="radio" disabled="disabled"
											   title="{\App\Language::translate('LBL_BASE_CURRENCY')}"
											   data-js="checked"/>
				title="{\App\Language::translate($FIELD_MODEL->getFieldLabel(), $MODULE_NAME)}" tabindex="{$TABINDEX}"
				{if $FIELD_MODEL->isEditableReadOnly()}disabled="disabled" {else}data-validation-engine="validate[{if $FIELD_MODEL->isMandatory() eq true} required,{/if}funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" {/if}>
				$fieldPickListValues[$value] = \App\Language::translate($value, $this->getModuleName(),false,false);
					$fieldPickListValues[$fieldValue] = \App\Language::translate($fieldValue, $this->getModuleName(),false,false);
	 * Function returns Client Side Validators name.
	 * @return <Array> [name=>Name of the Validator, params=>Extra Parameters]
	public function getValidator()
			throw new \App\Exceptions\Security('ERR_ILLEGAL_FIELD_VALUE||' . $this->getFieldModel()->getFieldName() . '||' . $this->getFieldModel()->getModuleName() . '||' . $value, 406);
				throw new \App\Exceptions\Security('ERR_ILLEGAL_FIELD_VALUE||' . $this->getFieldModel()->getFieldName() . '||' . $this->getFieldModel()->getModuleName() . '||' . $id, 406);
				throw new \App\Exceptions\Security('ERR_ILLEGAL_FIELD_VALUE||' . $this->getFieldModel()->getFieldName() . '||' . $this->getFieldModel()->getModuleName() . '||' . $price, 406);
		$params = ['uitype' => 71, 'displaytype' => 1, 'typeofdata' => 'N~O', 'isEditableReadOnly' => false, 'maximumlength' => '99999999999999999'];
			$name = "currencies[$id]['value']";
			for (let i = 0; i < listOfValidators.length; i++) {
				for (key in specialValidators) {
					if (!specialValidators.hasOwnProperty(key)) {
					let specialValidator = specialValidators[key],
			if (maximumLength && strippedValue > parseFloat(maximumLength)) {
				errorInfo = app.vtranslate('JS_ERROR_MAX_VALUE');
				this.setError(errorInfo);
				return false;
Fixed code: 	'appVersion' => '6.3.3',
	'patchVersion' => '2021.12.13',
insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (14,193,'unit_price','vtiger_products',1,360,'unit_price','Unit Price',0,0,'','0,99999999',1,32,1,'V~O',2,3,'BAS',0,'',1,'',NULL,0,0,0,0,'',NULL);
insert  into `vtiger_field`(`tabid`,`fieldid`,`columnname`,`tablename`,`generatedtype`,`uitype`,`fieldname`,`fieldlabel`,`readonly`,`presence`,`defaultvalue`,`maximumlength`,`sequence`,`block`,`displaytype`,`typeofdata`,`quickcreate`,`quickcreatesequence`,`info_type`,`masseditable`,`helpinfo`,`summaryfield`,`fieldparams`,`header_field`,`maxlengthtext`,`maxwidthcolumn`,`visible`,`tabindex`,`color`,`icon`) values (14,2817,'purchase','vtiger_products',1,360,'purchase','FL_PURCHASE',0,2,'','0,99999999',6,32,1,'V~O',2,3,'BAS',0,'',1,'',NULL,0,0,0,0,'',NULL);
						title="{\App\Language::translate('LBL_CLOSE')}">
												id="cur_{$CURRENCY_ID}_check"
												class="small float-right js-enable-currency"
												data-js="change">
											size="10" id="{$ITEM['name']}"
											class="col-md-9 js-format-numer js-converted-price form-control"
											data-validation-engine="validate[funcCall[Vtiger_Currency_Validator_Js.invokeValidation]]"
											data-fieldinfo="{\App\Purifier::encodeHtml(\App\Json::encode($ITEM.fieldInfo))}"
											data-js="value" disabled="disabled" />
										<input name="currencies[{$CURRENCY_ID}][rate]"
											value="{App\Fields\Double::formatToDisplay($ITEM['conversionRate'], false)}"
											class="col-md-9 js-conversion-rate form-control" type="text" size="10"
											readonly="readonly" disabled="disabled">
											id="cur_reset{$CURRENCY_ID}"
											value="{\App\Language::translate('LBL_RESET',$MODULE_NAME)}"
											data-js="click">
											class="js-base-currency" type="radio" disabled="disabled"
											title="{\App\Language::translate('LBL_BASE_CURRENCY')}"
											data-js="checked" />
	{assign var=FIELD_INFO value=\App\Purifier::encodeHtml(\App\Json::encode($FIELD_MODEL->getFieldInfo()))}
				title="{\App\Language::translate($FIELD_MODEL->getFieldLabel(), $MODULE_NAME)}" tabindex="{$TABINDEX}" data-fieldinfo="{$FIELD_INFO}"
				{if $FIELD_MODEL->isEditableReadOnly()} disabled="disabled" {else}data-validation-engine="validate[{if $FIELD_MODEL->isMandatory() eq true} required,{/if}funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" {/if} {if !empty($SPECIAL_VALIDATOR)}data-validator='{\App\Purifier::encodeHtml(\App\Json::encode($SPECIAL_VALIDATOR))}' {/if}>
				$fieldPickListValues[$value] = \App\Language::translate($value, $this->getModuleName(), false, false);
					$fieldPickListValues[$fieldValue] = \App\Language::translate($fieldValue, $this->getModuleName(), false, false);
	 * Gets default validator.
	 * @return array
	public function getDefaultValidator(): array
	/**
	 * Function returns Client Side Validators name.
	 *
	 * @return array [name=>Name of the Validator, params=>Extra Parameters]
	 */
	public function getValidator()
	{
		return method_exists($this->getUITypeModel(), 'getValidator') ? $this->getUITypeModel()->getValidator() : $this->getDefaultValidator();
	}

	/**
	 * Get validator.
	 *
	 * @return array
	 */
	public function getValidator(): array
	{
		return [['name' => 'Currency']];
	}

			throw new \App\Exceptions\Security('ERR_ILLEGAL_FIELD_VALUE||' . $this->getFieldModel()->getName() . '||' . $this->getFieldModel()->getModuleName() . '||' . $value, 406);
				throw new \App\Exceptions\Security('ERR_ILLEGAL_FIELD_VALUE||' . $this->getFieldModel()->getName() . '||' . $this->getFieldModel()->getModuleName() . '||' . $id, 406);
				throw new \App\Exceptions\Security('ERR_ILLEGAL_FIELD_VALUE||' . $this->getFieldModel()->getName() . '||' . $this->getFieldModel()->getModuleName() . '||' . $price, 406);
			}
			if ($maximumLength = $this->getFieldModel()->get('maximumlength')) {
				[$minimumLength, $maximumLength] = false !== strpos($maximumLength, ',') ? explode(',', $maximumLength) : [-$maximumLength, $maximumLength];
				if ((float) $minimumLength > $price || (float) $maximumLength < $price) {
					throw new \App\Exceptions\Security('ERR_VALUE_IS_TOO_LONG||' . $this->getFieldModel()->getName() . '||' . $this->getFieldModel()->getModuleName() . "||{$maximumLength} < {$price} < {$minimumLength}", 406);
				}
		$params = ['uitype' => 71, 'displaytype' => 1, 'typeofdata' => 'N~O', 'isEditableReadOnly' => false, 'maximumlength' => $this->getFieldModel()->get('maximumlength')];
			$name = "currencies[$id][value]";
			for (let i in listOfValidators) {
				for (let s in specialValidators) {
					if (!specialValidators.hasOwnProperty(s)) {
					let specialValidator = specialValidators[s],
			if (maximumLength) {
				let ranges = maximumLength.split(',');
				if (
					(ranges.length === 2 && (strippedValue > parseFloat(ranges[1]) || strippedValue < parseFloat(ranges[0]))) ||
					(ranges.length === 1 && (strippedValue > parseFloat(ranges[0]) || strippedValue < 0))
				) {
					errorInfo = app.vtranslate('JS_ERROR_MAX_VALUE');
					this.setError(errorInfo);
					return false;
				}