mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
PHRAS-3664 always send event even if in the same collection (#4024)
This commit is contained in:
@@ -566,6 +566,8 @@ class record_adapter implements RecordInterface, cache_cacheableInterface
|
||||
public function move_to_collection(collection $collection, appbox $appbox = null)
|
||||
{
|
||||
if ($this->getCollection()->get_base_id() === $collection->get_base_id()) {
|
||||
$this->dispatch(RecordEvents::COLLECTION_CHANGED, new CollectionChangedEvent($this, $collection, $collection));
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user