entity manager iconClass backend
This commit is contained in:
@@ -86,6 +86,9 @@ class EntityManager extends \Espo\Core\Controllers\Base
|
||||
if (!empty($data['color'])) {
|
||||
$params['color'] = $data['color'];
|
||||
}
|
||||
if (!empty($data['iconClass'])) {
|
||||
$params['iconClass'] = $data['iconClass'];
|
||||
}
|
||||
|
||||
$params['kanbanViewMode'] = !empty($data['kanbanViewMode']);
|
||||
if (!empty($data['kanbanStatusIgnoreList'])) {
|
||||
|
||||
@@ -309,7 +309,11 @@ class EntityManager
|
||||
|
||||
if (array_key_exists('color', $params)) {
|
||||
$clientDefsData['color'] = $params['color'];
|
||||
};
|
||||
}
|
||||
|
||||
if (array_key_exists('iconClass', $params)) {
|
||||
$clientDefsData['iconClass'] = $params['iconClass'];
|
||||
}
|
||||
|
||||
if (!empty($params['kanbanViewMode'])) {
|
||||
$clientDefsData['kanbanViewMode'] = true;
|
||||
@@ -418,6 +422,13 @@ class EntityManager
|
||||
$this->getMetadata()->set('clientDefs', $name, $clientDefsData);
|
||||
}
|
||||
|
||||
if (array_key_exists('iconClass', $data)) {
|
||||
$clientDefsData = [
|
||||
'iconClass' => $data['iconClass']
|
||||
];
|
||||
$this->getMetadata()->set('clientDefs', $name, $clientDefsData);
|
||||
}
|
||||
|
||||
$this->getMetadata()->save();
|
||||
$this->getLanguage()->save();
|
||||
if ($isCustom) {
|
||||
|
||||
Reference in New Issue
Block a user