Fix get_metadatum method in filter entity

This commit is contained in:
leogermani 2019-06-26 10:49:38 -03:00
parent ac1c668875
commit 23e5986e23
1 changed files with 0 additions and 1 deletions

View File

@ -126,7 +126,6 @@ class Filter extends Entity {
return $this->metadatum;
}
$id = $this->get_metadatum_id();
return new Metadatum($id);
$metadatum = \Tainacan\Repositories\Metadata::get_instance()->fetch((int) $id);
if ($metadatum instanceof Metadatum) {
$this->metadatum = $metadatum;