EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
default decimal to string
Yuri Kuznetsova141a664c6d0
diff --git a/application/Espo/Core/Utils/Database/Orm/FieldConverters/Currency.php b/application/Espo/Core/Utils/Database/Orm/FieldConverters/Currency.phpindex 2cb8ef296b..4210ab5285 100644--- a/application/Espo/Core/Utils/Database/Orm/FieldConverters/Currency.php+++ b/application/Espo/Core/Utils/Database/Orm/FieldConverters/Currency.php@@ -82,6 +82,12 @@ class Currency implements FieldConverter->withDbType($dbType)->withParam(AttributeParam::PRECISION, $precision)->withParam(AttributeParam::SCALE, $scale);++ $defaultValue = $fieldDefs->getParam(AttributeParam::DEFAULT);++ if ($defaultValue !== null) {+ $amountDefs = $amountDefs->withParam(AttributeParam::DEFAULT, (string) $defaultValue);+ }}if ($fieldDefs->isNotStorable()) {