EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
fix error "Unknown column 'api' in 'field list'" on mass relate (#3562)
grrayddb636239bb7
diff --git a/application/Espo/Core/Record/Service.php b/application/Espo/Core/Record/Service.phpindex 47e0f20b91..f6c06c3700 100644--- a/application/Espo/Core/Record/Service.php+++ b/application/Espo/Core/Record/Service.php@@ -1303,7 +1303,7 @@ class Service implements Crud,$this->getRepository()->getRelation($entity, $link)- ->relate($foreignEntity, [SaveOption::API => true]);+ ->relate($foreignEntity, null, [SaveOption::API => true]);$countRelated++;}