Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
Merge branch '2021.11' into 2022.11
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlabci committed Mar 16, 2022
2 parents db6ddf1 + 56a9852 commit e26268d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tine20/Felamimail/Controller/Sieve.php
Original file line number Diff line number Diff line change
Expand Up @@ -642,10 +642,12 @@ protected function _doMessageSubstitutions(Felamimail_Model_Sieve_Vacation $vaca
$timezone = Tinebase_Core::getUserTimezone();
$representatives = ($vacation->contact_ids) ? Addressbook_Controller_Contact::getInstance()->getMultiple($vacation->contact_ids) : array();
if ($vacation->contact_ids && count($representatives) > 0) {
// sort representatives
// sort and expand representatives
$representativesArray = array();
foreach ($vacation->contact_ids as $id) {
$representativesArray[] = $representatives->getById($id);
if ($contact = $representatives->getById($id)) {
$representativesArray[] = $contact;
}
}
}
try {
Expand Down

0 comments on commit e26268d

Please sign in to comment.