fix task/meeting accountName contactName

This commit is contained in:
yuri
2018-05-07 11:57:05 +03:00
parent c44cc9906e
commit 6ac0c7b301
3 changed files with 99 additions and 13 deletions
+5 -2
View File
@@ -38,12 +38,15 @@ class Metadata
$this->data = $data;
}
public function get($entityType)
public function get($entityType, $key = null, $default = null)
{
if (!array_key_exists($entityType, $this->data)) {
return null;
}
return $this->data[$entityType];
$data = $this->data[$entityType];
if (!$key) return $data;
return \Espo\Core\Utils\Util::getValueByKey($data, $key, $default);
}
public function has($entityType)