Explorar o código

Merge pull request #472 from n1c01a5/master

Fix an error to setting var
Christophe Coevoet %!s(int64=12) %!d(string=hai) anos
pai
achega
0add69ccb0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/Gedmo/Loggable/LoggableListener.php

+ 1 - 1
lib/Gedmo/Loggable/LoggableListener.php

@@ -238,8 +238,8 @@ class LoggableListener extends MappedEventSubscriber
             }
             $uow = $om->getUnitOfWork();
             $logEntry->setObjectId($objectId);
+            $newValues = array();
             if ($action !== self::ACTION_REMOVE && isset($config['versioned'])) {
-                $newValues = array();
                 foreach ($ea->getObjectChangeSet($uow, $object) as $field => $changes) {
                     if (!in_array($field, $config['versioned'])) {
                         continue;