diff --git a/lib/classes/Session/Logger.php b/lib/classes/Session/Logger.php index 1007bbde65..8f6aeac25b 100644 --- a/lib/classes/Session/Logger.php +++ b/lib/classes/Session/Logger.php @@ -32,6 +32,7 @@ class Session_Logger const EVENT_EXPORTDOWNLOAD = 'download'; const EVENT_EXPORTFTP = 'ftp'; const EVENT_EXPORTMAIL = 'mail'; + const EVENT_MOVE_FROM = 'collection_from'; const EVENT_MOVE = 'collection'; const EVENT_PRINT = 'print'; const EVENT_PUSH = 'push'; @@ -41,7 +42,6 @@ class Session_Logger /** * - * @param Application $app * @param databox $databox * @param integer $log_id * diff --git a/lib/classes/record/adapter.php b/lib/classes/record/adapter.php index e68c1d3620..f05c0fccec 100644 --- a/lib/classes/record/adapter.php +++ b/lib/classes/record/adapter.php @@ -529,6 +529,9 @@ class record_adapter implements RecordInterface, cache_cacheableInterface return $this; } + $this->app['phraseanet.logger']($this->getDatabox()) + ->log($this, Session_Logger::EVENT_MOVE_FROM, $this->getCollectionId(), ''); + $sql = "UPDATE record SET moddate = NOW(), coll_id = :coll_id WHERE record_id =:record_id"; $params = [ diff --git a/lib/conf.d/bases_structure.xml b/lib/conf.d/bases_structure.xml index cf5d3488d8..20a6dd1952 100644 --- a/lib/conf.d/bases_structure.xml +++ b/lib/conf.d/bases_structure.xml @@ -2519,7 +2519,7 @@ action - enum('push','add','validate','edit','collection','status','print','substit','publish','download','mail','ftp','delete') + enum('push','add','validate','edit','collection','status','print','substit','publish','download','mail','ftp','delete','collection_to','')