mirror of
https://github.com/Karaka-Management/oms-FleetManagement.git
synced 2026-02-17 13:58:41 +00:00
Test fixes
This commit is contained in:
parent
29f0411b89
commit
f68f1c26fd
|
|
@ -464,13 +464,13 @@
|
||||||
"null": false
|
"null": false
|
||||||
},
|
},
|
||||||
"fleetmgmt_vehicle_attr_type_required": {
|
"fleetmgmt_vehicle_attr_type_required": {
|
||||||
"description": "Every vehicle must have this attribute type if set to true.",
|
"comment": "Every vehicle must have this attribute type if set to true.",
|
||||||
"name": "fleetmgmt_vehicle_attr_type_required",
|
"name": "fleetmgmt_vehicle_attr_type_required",
|
||||||
"type": "TINYINT(1)",
|
"type": "TINYINT(1)",
|
||||||
"null": false
|
"null": false
|
||||||
},
|
},
|
||||||
"fleetmgmt_vehicle_attr_type_pattern": {
|
"fleetmgmt_vehicle_attr_type_pattern": {
|
||||||
"description": "This is a regex validation pattern.",
|
"comment": "This is a regex validation pattern.",
|
||||||
"name": "fleetmgmt_vehicle_attr_type_pattern",
|
"name": "fleetmgmt_vehicle_attr_type_pattern",
|
||||||
"type": "VARCHAR(255)",
|
"type": "VARCHAR(255)",
|
||||||
"null": false
|
"null": false
|
||||||
|
|
@ -755,13 +755,13 @@
|
||||||
"null": false
|
"null": false
|
||||||
},
|
},
|
||||||
"fleetmgmt_driver_attr_type_required": {
|
"fleetmgmt_driver_attr_type_required": {
|
||||||
"description": "Every driver must have this attribute type if set to true.",
|
"comment": "Every driver must have this attribute type if set to true.",
|
||||||
"name": "fleetmgmt_driver_attr_type_required",
|
"name": "fleetmgmt_driver_attr_type_required",
|
||||||
"type": "TINYINT(1)",
|
"type": "TINYINT(1)",
|
||||||
"null": false
|
"null": false
|
||||||
},
|
},
|
||||||
"fleetmgmt_driver_attr_type_pattern": {
|
"fleetmgmt_driver_attr_type_pattern": {
|
||||||
"description": "This is a regex validation pattern.",
|
"comment": "This is a regex validation pattern.",
|
||||||
"name": "fleetmgmt_driver_attr_type_pattern",
|
"name": "fleetmgmt_driver_attr_type_pattern",
|
||||||
"type": "VARCHAR(255)",
|
"type": "VARCHAR(255)",
|
||||||
"null": false
|
"null": false
|
||||||
|
|
|
||||||
|
|
@ -440,6 +440,10 @@ final class Installer extends InstallerAbstract
|
||||||
$module = $app->moduleManager->get('FleetManagement', 'ApiVehicleAttribute');
|
$module = $app->moduleManager->get('FleetManagement', 'ApiVehicleAttribute');
|
||||||
|
|
||||||
foreach ($attributes as $attribute) {
|
foreach ($attributes as $attribute) {
|
||||||
|
if (!isset($attribute['values'])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$itemAttrValue[$attribute['name']] = [];
|
$itemAttrValue[$attribute['name']] = [];
|
||||||
|
|
||||||
/** @var array $value */
|
/** @var array $value */
|
||||||
|
|
@ -581,6 +585,10 @@ final class Installer extends InstallerAbstract
|
||||||
$module = $app->moduleManager->get('FleetManagement', 'ApiDriverAttribute');
|
$module = $app->moduleManager->get('FleetManagement', 'ApiDriverAttribute');
|
||||||
|
|
||||||
foreach ($attributes as $attribute) {
|
foreach ($attributes as $attribute) {
|
||||||
|
if (!isset($attribute['values'])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$itemAttrValue[$attribute['name']] = [];
|
$itemAttrValue[$attribute['name']] = [];
|
||||||
|
|
||||||
/** @var array $value */
|
/** @var array $value */
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
# Structure
|
|
||||||
|
|
||||||
## ER
|
|
||||||
|
|
||||||

|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 158 KiB |
Loading…
Reference in New Issue
Block a user