mirror of
https://github.com/Karaka-Management/oms-Support.git
synced 2026-02-13 14:58:41 +00:00
test fixes
This commit is contained in:
parent
2646cb1a10
commit
7dc190d162
|
|
@ -136,7 +136,6 @@ final class Application
|
||||||
|
|
||||||
/** @var ConnectionAbstract $con */
|
/** @var ConnectionAbstract $con */
|
||||||
$con = $this->app->dbPool->get();
|
$con = $this->app->dbPool->get();
|
||||||
$con->connect();
|
|
||||||
DataMapperFactory::db($con);
|
DataMapperFactory::db($con);
|
||||||
|
|
||||||
$this->app->cachePool = new CachePool();
|
$this->app->cachePool = new CachePool();
|
||||||
|
|
|
||||||
|
|
@ -654,7 +654,7 @@ final class ApiController extends Controller
|
||||||
|
|
||||||
$attrValue = new TicketAttributeValue();
|
$attrValue = new TicketAttributeValue();
|
||||||
$attrValue->isDefault = $request->getDataBool('default') ?? false;
|
$attrValue->isDefault = $request->getDataBool('default') ?? false;
|
||||||
$attrValue->setValue($request->getData('value'), $type->datatype);
|
$attrValue->setValue($request->getDataString('value'), $type->datatype);
|
||||||
|
|
||||||
if ($request->hasData('title')) {
|
if ($request->hasData('title')) {
|
||||||
$attrValue->setL11n($request->getDataString('title') ?? '', $request->getDataString('language') ?? ISO639x1Enum::_EN);
|
$attrValue->setL11n($request->getDataString('title') ?? '', $request->getDataString('language') ?? ISO639x1Enum::_EN);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user