N°3111 - Fix Portal export

(cherry picked from commit d3b57c3bda)
This commit is contained in:
Eric
2020-09-01 17:17:01 +02:00
committed by Pierre Goiffon
parent 97d322a059
commit eebc29d2bb
7 changed files with 133 additions and 114 deletions

View File

@@ -4181,7 +4181,7 @@ abstract class MetaModel
{
$oSearch = DBObjectSearch::FromOQL("SELECT Contact WHERE id = :id");
$oSet = new DBObjectSet($oSearch, array(), array('id' => UserRights::GetContactId()));
$oSet->OptimizeColumnLoad($aCurrentContact);
$oSet->OptimizeColumnLoad(['Contact' => $aCurrentContact]);
$oUser = $oSet->fetch();
foreach ($aCurrentContact as $sField)
{