From ccd0e02c76672de6ac4f681e48f957e4cc9596a9 Mon Sep 17 00:00:00 2001 From: Felix Woldt Date: Thu, 15 Mar 2018 17:05:21 +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' --- bin/syncobjectattributes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/syncobjectattributes.php b/bin/syncobjectattributes.php index 46ba34e..7bc46c6 100644 --- a/bin/syncobjectattributes.php +++ b/bin/syncobjectattributes.php @@ -229,7 +229,7 @@ function updateClass( $classId, $scheduledScript ) // Log in admin user $user = eZUser::fetchByName( isset( $options['admin-user'] ) ? $options['admin-user'] : 'admin' ); if ( $user ) - eZUser::setCurrentlyLoggedInUser( $user, $user->attribute( 'id' ) ); + eZUser::setCurrentlyLoggedInUser( $user, $user->attribute( 'contentobject_id' ) ); else { $cli->error( 'Could not fetch admin user object' );