Merge branch 'hotfix/5.6.10'

This commit is contained in:
yuri
2019-07-30 15:50:36 +03:00
4 changed files with 27 additions and 2 deletions
+2 -2
View File
@@ -257,7 +257,7 @@ abstract class Mapper implements IMapper
if (!$returnTotalCount) {
if (!empty($params['returnSthCollection']) && $relType !== IEntity::HAS_ONE) {
$collection = $this->createSthCollection($entity->getEntityType());
$collection = $this->createSthCollection($relEntity->getEntityType());
$collection->setQuery($sql);
return $collection;
}
@@ -316,7 +316,7 @@ abstract class Mapper implements IMapper
if (!$returnTotalCount) {
if (!empty($params['returnSthCollection'])) {
$collection = $this->createSthCollection($entity->getEntityType());
$collection = $this->createSthCollection($relEntity->getEntityType());
$collection->setQuery($sql);
return $collection;
}
+5
View File
@@ -150,4 +150,9 @@ class SthCollection implements \IteratorAggregate
{
return $this->isFetched;
}
public function getEntityType()
{
return $this->entityType;
}
}
+18
View File
@@ -342,6 +342,15 @@ class LeadCapture extends Record
'leadCaptureId' => $leadCapture->id,
]);
}
$this->getInjection('hookManager')->process('LeadCapture', 'afterLeadCapture', $leadCapture, [], [
'targetId' => $contact->id,
'targetType' => 'Contact',
]);
$this->getInjection('hookManager')->process('Contact', 'afterLeadCapture', $contact, [], [
'leadCaptureId' => $leadCapture->id,
]);
}
}
}
@@ -390,6 +399,15 @@ class LeadCapture extends Record
'leadCaptureId' => $leadCapture->id,
]);
}
$this->getInjection('hookManager')->process('LeadCapture', 'afterLeadCapture', $leadCapture, [], [
'targetId' => $targetLead->id,
'targetType' => 'Lead',
]);
$this->getInjection('hookManager')->process('Lead', 'afterLeadCapture', $targetLead, [], [
'leadCaptureId' => $leadCapture->id,
]);
}
if (!$isLogged) {
+2
View File
@@ -38,6 +38,8 @@ Espo.define('views/user/modals/access', 'views/modal', function (Dep) {
header: false,
backdrop: true,
data: function () {
return {
valuePermissionDataList: this.getValuePermissionList(),