From cced5775092b4b459232cbeac1684be9399360aa Mon Sep 17 00:00:00 2001 From: Felix Woldt Date: Thu, 15 Mar 2018 17:11:16 +0100 Subject: [PATCH] Avoid error.log entries eZUser::attribute:Attribute 'id' does not exists eZUser has no attribute 'id' so we have to access 'contentobject_id' --- classes/solrstorage/ezusersolrstorage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/solrstorage/ezusersolrstorage.php b/classes/solrstorage/ezusersolrstorage.php index 12d083a6..fa095979 100644 --- a/classes/solrstorage/ezusersolrstorage.php +++ b/classes/solrstorage/ezusersolrstorage.php @@ -21,7 +21,7 @@ public static function getAttributeContent( eZContentObjectAttribute $contentObj $user = eZUser::fetch( $contentObjectAttribute->attribute( "contentobject_id" ) ); return array( 'content' => array( - 'id' => $user->attribute( 'id' ), + 'id' => $user->attribute( 'contentobject_id' ), 'login' => $user->attribute( 'login' ), 'email' => $user->attribute( 'email' ), ),