mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-02-15 15:28:42 +00:00
l11n, unit/app and simplification fixes
This commit is contained in:
parent
45d7273032
commit
081da4ec2f
|
|
@ -13,6 +13,14 @@
|
||||||
"name": "qa_app_name",
|
"name": "qa_app_name",
|
||||||
"type": "VARCHAR(255)",
|
"type": "VARCHAR(255)",
|
||||||
"default": null
|
"default": null
|
||||||
|
},
|
||||||
|
"qa_app_unit": {
|
||||||
|
"name": "qa_app_unit",
|
||||||
|
"type": "INT",
|
||||||
|
"default": null,
|
||||||
|
"null": true,
|
||||||
|
"foreignTable": "organization_unit",
|
||||||
|
"foreignKey": "organization_unit_id"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -420,6 +420,7 @@ final class ApiController extends Controller
|
||||||
{
|
{
|
||||||
$app = new QAApp();
|
$app = new QAApp();
|
||||||
$app->name = (string) ($request->getData('name') ?? '');
|
$app->name = (string) ($request->getData('name') ?? '');
|
||||||
|
$app->unit = $request->getData('unit', 'int');
|
||||||
|
|
||||||
return $app;
|
return $app;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,14 @@ class QAApp implements \JsonSerializable
|
||||||
*/
|
*/
|
||||||
public string $name = '';
|
public string $name = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unit
|
||||||
|
*
|
||||||
|
* @var null|int
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public ?int $unit = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get id.
|
* Get id.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ final class QAAppMapper extends DataMapperFactory
|
||||||
public const COLUMNS = [
|
public const COLUMNS = [
|
||||||
'qa_app_id' => ['name' => 'qa_app_id', 'type' => 'int', 'internal' => 'id'],
|
'qa_app_id' => ['name' => 'qa_app_id', 'type' => 'int', 'internal' => 'id'],
|
||||||
'qa_app_name' => ['name' => 'qa_app_name', 'type' => 'string', 'internal' => 'name'],
|
'qa_app_name' => ['name' => 'qa_app_name', 'type' => 'string', 'internal' => 'name'],
|
||||||
|
'qa_app_unit' => ['name' => 'qa_app_unit', 'type' => 'int', 'internal' => 'unit'],
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user