Skip to content

Commit

Permalink
PHRAS-3664 always send event even if in the same collection (#4024)
Browse files Browse the repository at this point in the history
  • Loading branch information
aynsix authored Jan 12, 2023
1 parent 5d9f4ed commit b4c6712
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/classes/record/adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,8 @@ public function get_duration()
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;
}

Expand Down

0 comments on commit b4c6712

Please sign in to comment.