mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
PHRAS-2161_coll-id-in-log-docs_MASTER
add "from_coll_id" parameter to logger, used only when action="collection"
This commit is contained in:
@@ -529,8 +529,7 @@ class record_adapter implements RecordInterface, cache_cacheableInterface
|
||||
return $this;
|
||||
}
|
||||
|
||||
$this->app['phraseanet.logger']($this->getDatabox())
|
||||
->log($this, Session_Logger::EVENT_MOVE_FROM, $this->getCollectionId(), '');
|
||||
$coll_id_from = $this->getCollectionId();
|
||||
|
||||
$sql = "UPDATE record SET moddate = NOW(), coll_id = :coll_id WHERE record_id =:record_id";
|
||||
|
||||
@@ -546,7 +545,7 @@ class record_adapter implements RecordInterface, cache_cacheableInterface
|
||||
$this->base_id = $collection->get_base_id();
|
||||
|
||||
$this->app['phraseanet.logger']($this->getDatabox())
|
||||
->log($this, Session_Logger::EVENT_MOVE, $collection->get_coll_id(), '');
|
||||
->log($this, Session_Logger::EVENT_MOVE, $collection->get_coll_id(), '', $coll_id_from);
|
||||
|
||||
$this->delete_data_from_cache();
|
||||
|
||||
|
Reference in New Issue
Block a user