test fixes

This commit is contained in:
Dennis Eichhorn 2023-09-24 03:50:15 +00:00
parent 2646cb1a10
commit 7dc190d162
2 changed files with 1 additions and 2 deletions

View File

@ -136,7 +136,6 @@ final class Application
/** @var ConnectionAbstract $con */
$con = $this->app->dbPool->get();
$con->connect();
DataMapperFactory::db($con);
$this->app->cachePool = new CachePool();

View File

@ -654,7 +654,7 @@ final class ApiController extends Controller
$attrValue = new TicketAttributeValue();
$attrValue->isDefault = $request->getDataBool('default') ?? false;
$attrValue->setValue($request->getData('value'), $type->datatype);
$attrValue->setValue($request->getDataString('value'), $type->datatype);
if ($request->hasData('title')) {
$attrValue->setL11n($request->getDataString('title') ?? '', $request->getDataString('language') ?? ISO639x1Enum::_EN);