formula ui 1

This commit is contained in:
yuri
2016-12-23 12:52:00 +02:00
parent 52afd6f11c
commit a11c6a23c4
8 changed files with 215 additions and 3 deletions

View File

@@ -292,5 +292,23 @@ class EntityManager extends \Espo\Core\Controllers\Base
return true;
}
public function postActionFormula($params, $data, $request)
{
if (empty($data['scope'])) {
throw new BadRequest();
}
if (!array_key_exists('data', $data)) {
throw new BadRequest();
}
$formulaData = get_object_vars($data['data']);
$this->getContainer()->get('entityManagerUtil')->setFormulaData($data['scope'], $formulaData);
$this->getContainer()->get('dataManager')->clearCache();
return true;
}
}