Skip to content

Commit

Permalink
Merge branch '2024.11'
Browse files Browse the repository at this point in the history
  • Loading branch information
pschuele committed Feb 27, 2025
2 parents 41ac976 + 129ba5a commit 82b8043
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ and follow the instructions of the repo.
- DAVx5 to version 4.4.3

### Server
- PHP version 8.1 to 8.2
- MySQL version 8.0
- PHP version 8.1 to 8.3
- MySQL to version 8.0
- MariaDB 10.4 to version 10.9
- Nginx to version 1.25
- Redis to version 6.0
6 changes: 5 additions & 1 deletion tine20/RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ TINE RELEASENOTES
=====================
Release: Pelle (2024.11)
Last change: 2024-11-06
Last change: 2025-02-27

# GENERAL CHANGES (Administrative/Operative)

## PHP 8.3 Support

- PHP 8.3 is now fully supported (with version 2024.11.6)

## PHP 8.2 Support

- PHP 8.2 is now fully supported
Expand Down
18 changes: 13 additions & 5 deletions tine20/Tinebase/Export/Abstract.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?php

/**
* Tinebase Abstract export class
*
* @package Tinebase
* @subpackage Export
* @license http://www.gnu.org/licenses/agpl.html AGPL Version 3
* @author Paul Mehrer <[email protected]>
* @copyright Copyright (c) 2017-2024 Metaways Infosystems GmbH (http://www.metaways.de)
* @copyright Copyright (c) 2017-2025 Metaways Infosystems GmbH (http://www.metaways.de)
*
*/

Expand Down Expand Up @@ -1590,8 +1591,10 @@ protected function _renderTwigTemplate($_record = null)
if (isset($twigResult[$key]) || array_key_exists($key, $twigResult)) {
$value = $this->_convertToString($twigResult[$key]);
} else {
if (Tinebase_Core::isLogLevel(Zend_Log::WARN)) Tinebase_Core::getLogger()->warn(__METHOD__ . '::' . __LINE__ .
' twig mapping: ' . $key . ' ' . $twigKey . ' not found in twig result array');
if (Tinebase_Core::isLogLevel(Zend_Log::WARN)) {
Tinebase_Core::getLogger()->warn(__METHOD__ . '::' . __LINE__ .
' twig mapping: ' . $key . ' ' . $twigKey . ' not found in twig result array');
}
$value = '';
}
$this->_setValue($twigKey, $value);
Expand All @@ -1605,6 +1608,11 @@ protected function _renderTwigTemplate($_record = null)
protected function _getTwigContext(array $context)
{
if (null === $this->_baseContext) {
$account = Tinebase_Core::getUser();
$contact = Addressbook_Controller_Contact::getInstance()->getContactByUserId(
$account->getId(),
true);

$this->_baseContext = [
Addressbook_Config::INSTALLATION_REPRESENTATIVE => Addressbook_Config::getInstallationRepresentative(),
'branding' => [
Expand All @@ -1616,8 +1624,8 @@ protected function _getTwigContext(array $context)
'export' => [
'config' => $this->_config->toArray(),
'timestamp' => $this->_exportTimeStamp,
'account' => Tinebase_Core::getUser(),
'contact' => Addressbook_Controller_Contact::getInstance()->getContactByUserId(Tinebase_Core::getUser()->getId()),
'account' => $account,
'contact' => $contact,
],
'additionalRecords' => $this->_additionalRecords,
];
Expand Down

0 comments on commit 82b8043

Please sign in to comment.