mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
Merge branch 'fix'
This commit is contained in:
@@ -254,9 +254,22 @@ class CaseObj extends Record
|
||||
'emailAddress' => $emailAddress,
|
||||
'name' => $contact->get('name'),
|
||||
'entityType' => 'Contact',
|
||||
'entityId' => $contact->getId(),
|
||||
];
|
||||
}
|
||||
|
||||
usort($dataList, function (stdClass $o1, stdClass $o2) use ($entity) {
|
||||
if ($o1->entityId == $entity->get('contactId')) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ($o2->entityId == $entity->get('contactId')) {
|
||||
return +1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
});
|
||||
|
||||
return $dataList;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -701,9 +701,22 @@ class Opportunity extends Record
|
||||
'emailAddress' => $emailAddress,
|
||||
'name' => $contact->get('name'),
|
||||
'entityType' => 'Contact',
|
||||
'entityId' => $contact->getId(),
|
||||
];
|
||||
}
|
||||
|
||||
usort($dataList, function (stdClass $o1, stdClass $o2) use ($entity) {
|
||||
if ($o1->entityId == $entity->get('contactId')) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ($o2->entityId == $entity->get('contactId')) {
|
||||
return +1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
});
|
||||
|
||||
return $dataList;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user