add some element in message

This commit is contained in:
aynsix
2021-12-02 16:50:09 +03:00
parent 2f93504ac5
commit dbca0718b5
13 changed files with 208 additions and 32 deletions

View File

@@ -545,6 +545,7 @@ class record_adapter implements RecordInterface, cache_cacheableInterface
return $this;
}
$beforeCollection = $this->getCollection();
$coll_id_from = $this->getCollectionId();
$coll_id_to = $collection->get_coll_id();
@@ -567,7 +568,7 @@ class record_adapter implements RecordInterface, cache_cacheableInterface
$this->app['phraseanet.logger']($this->getDatabox())
->log($this, Session_Logger::EVENT_MOVE, $collection->get_coll_id(), '', $coll_id_from);
$this->dispatch(RecordEvents::COLLECTION_CHANGED, new CollectionChangedEvent($this));
$this->dispatch(RecordEvents::COLLECTION_CHANGED, new CollectionChangedEvent($this, $beforeCollection, $collection));
return $this;
}