Merge branch 'hotfix/5.0.5'
This commit is contained in:
@@ -351,7 +351,7 @@ class Importer
|
||||
if ($email->get('messageId')) {
|
||||
$duplicate = $this->getEntityManager()->getRepository('Email')->select(['id'])->where(array(
|
||||
'messageId' => $email->get('messageId')
|
||||
))->findOne();
|
||||
))->findOne(['skipAdditionalSelectParams' => true]);
|
||||
if ($duplicate) {
|
||||
return $duplicate;
|
||||
}
|
||||
|
||||
@@ -187,7 +187,9 @@ class RDB extends \Espo\ORM\Repository
|
||||
|
||||
public function find(array $params = array())
|
||||
{
|
||||
$this->handleSelectParams($params);
|
||||
if (empty($params['skipAdditionalSelectParams'])) {
|
||||
$this->handleSelectParams($params);
|
||||
}
|
||||
$params = $this->getSelectParams($params);
|
||||
|
||||
$dataArr = $this->getMapper()->select($this->seed, $params);
|
||||
@@ -230,7 +232,9 @@ class RDB extends \Espo\ORM\Repository
|
||||
}
|
||||
|
||||
if ($entityType) {
|
||||
$this->getEntityManager()->getRepository($entityType)->handleSelectParams($params);
|
||||
if (empty($params['skipAdditionalSelectParams'])) {
|
||||
$this->getEntityManager()->getRepository($entityType)->handleSelectParams($params);
|
||||
}
|
||||
}
|
||||
|
||||
$result = $this->getMapper()->selectRelated($entity, $relationName, $params);
|
||||
@@ -250,7 +254,9 @@ class RDB extends \Espo\ORM\Repository
|
||||
return;
|
||||
}
|
||||
$entityType = $entity->relations[$relationName]['entity'];
|
||||
$this->getEntityManager()->getRepository($entityType)->handleSelectParams($params);
|
||||
if (empty($params['skipAdditionalSelectParams'])) {
|
||||
$this->getEntityManager()->getRepository($entityType)->handleSelectParams($params);
|
||||
}
|
||||
|
||||
return intval($this->getMapper()->countRelated($entity, $relationName, $params));
|
||||
}
|
||||
@@ -423,7 +429,9 @@ class RDB extends \Espo\ORM\Repository
|
||||
|
||||
public function count(array $params = array())
|
||||
{
|
||||
$this->handleSelectParams($params);
|
||||
if (empty($params['skipAdditionalSelectParams'])) {
|
||||
$this->handleSelectParams($params);
|
||||
}
|
||||
|
||||
$params = $this->getSelectParams($params);
|
||||
$count = $this->getMapper()->count($this->seed, $params);
|
||||
|
||||
@@ -124,7 +124,6 @@
|
||||
},
|
||||
"statusStyles": {
|
||||
"Lead": {
|
||||
"New" : "primary",
|
||||
"Assigned" : "primary",
|
||||
"In Process" : "primary",
|
||||
"Converted" : "success",
|
||||
@@ -140,14 +139,8 @@
|
||||
"Duplicate" : "danger"
|
||||
},
|
||||
"Opportunity": {
|
||||
"Prospecting": "primary",
|
||||
"Qualification": "primary",
|
||||
"Needs Analysis": "primary",
|
||||
"Value Proposition": "primary",
|
||||
"Id. Decision Makers": "primary",
|
||||
"Perception Analysis": "primary",
|
||||
"Proposal/Price Quote": "primary",
|
||||
"Negotiation/Review": "primary",
|
||||
"Proposal": "primary",
|
||||
"Negotiation": "primary",
|
||||
"Closed Won" : "success",
|
||||
"Closed Lost" : "danger"
|
||||
},
|
||||
|
||||
@@ -117,7 +117,7 @@ Espo.define('views/admin/field-manager/edit', ['view', 'model'], function (Dep,
|
||||
}.bind(this))
|
||||
]).then(function () {
|
||||
this.paramList = [];
|
||||
var paramList = this.getFieldManager().getParams(this.type) || [];
|
||||
var paramList = Espo.Utils.clone(this.getFieldManager().getParams(this.type) || []);
|
||||
|
||||
if (!this.isNew) {
|
||||
(this.getMetadata().get(['entityDefs', this.scope, 'fields', this.field, 'fieldManagerAdditionalParamList']) || []).forEach(function (item) {
|
||||
|
||||
Reference in New Issue
Block a user