diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php index 48366d2c4..967e5a8bf 100644 --- a/classes/controller/AdminController.php +++ b/classes/controller/AdminController.php @@ -803,7 +803,7 @@ class AdminControllerCore extends Controller if (empty($this->redirect_after)) $this->redirect_after = self::$currentIndex.($parent_id ? '&'.$this->identifier.'='.$object->id : '').'&conf=4&token='.$this->token; } - Logger::addLog(sprintf($this->l('%s edition'), $this->className), 1, null, $this->className, (int)$this->object->id, true, (int)$this->context->employee->id); + Logger::addLog(sprintf($this->l('%s edition'), $this->className), 1, null, $this->className, (int)$object->id, true, (int)$this->context->employee->id); } else $this->errors[] = Tools::displayError('An error occurred while updating an object.'). @@ -3013,4 +3013,4 @@ class AdminControllerCore extends Controller return $return; } -} \ No newline at end of file +}