mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-02-12 12:48:41 +00:00
test fixes
This commit is contained in:
parent
a8b3de05cb
commit
521f050fc3
|
|
@ -1009,10 +1009,13 @@ final class ApiController extends Controller
|
||||||
|
|
||||||
$attrValue = new TaskAttributeValue();
|
$attrValue = new TaskAttributeValue();
|
||||||
$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
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $attrValue;
|
return $attrValue;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user