mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
revert: 4cac08c48f do not use this approach
This commit is contained in:
@@ -1107,11 +1107,8 @@ class record_adapter implements RecordInterface, cache_cacheableInterface
|
|||||||
$this->set_xml($xml);
|
$this->set_xml($xml);
|
||||||
unset($xml);
|
unset($xml);
|
||||||
|
|
||||||
// if there is yet subdefs, ask to write metadata
|
$this->write_metas();
|
||||||
if (count($this->getMediaSubdefRepository()->findByRecordIdsAndNames([$this->getRecordId()])) > 1 ) {
|
$this->dispatch(RecordEvents::METADATA_CHANGED, new MetadataChangedEvent($this));
|
||||||
$this->write_metas();
|
|
||||||
$this->dispatch(RecordEvents::METADATA_CHANGED, new MetadataChangedEvent($this));
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user