mirror of
https://github.com/Karaka-Management/oms-Attribute.git
synced 2026-02-15 00:48:41 +00:00
Test fixes
This commit is contained in:
parent
e89c03cb59
commit
cfe56d2a4f
|
|
@ -46,13 +46,13 @@
|
||||||
"null": false
|
"null": false
|
||||||
},
|
},
|
||||||
"attribute_attr_type_required": {
|
"attribute_attr_type_required": {
|
||||||
"description": "Every element must have this attribute type if set to true.",
|
"comment": "Every element must have this attribute type if set to true.",
|
||||||
"name": "attribute_attr_type_required",
|
"name": "attribute_attr_type_required",
|
||||||
"type": "TINYINT(1)",
|
"type": "TINYINT(1)",
|
||||||
"null": false
|
"null": false
|
||||||
},
|
},
|
||||||
"attribute_attr_type_pattern": {
|
"attribute_attr_type_pattern": {
|
||||||
"description": "This is a regex validation pattern.",
|
"comment": "This is a regex validation pattern.",
|
||||||
"name": "attribute_attr_type_pattern",
|
"name": "attribute_attr_type_pattern",
|
||||||
"type": "VARCHAR(255)",
|
"type": "VARCHAR(255)",
|
||||||
"null": false
|
"null": false
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
# Structure
|
|
||||||
|
|
||||||
## ER
|
|
||||||
|
|
||||||

|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 107 KiB |
|
|
@ -85,11 +85,11 @@ class AttributeView extends View
|
||||||
public function render(mixed ...$data) : string
|
public function render(mixed ...$data) : string
|
||||||
{
|
{
|
||||||
/** @var array{0:\Modules\Attribute\Models\Attribute[]} $data */
|
/** @var array{0:\Modules\Attribute\Models\Attribute[]} $data */
|
||||||
$this->attributes = $data[0];
|
$this->attributes = $data[0] ?? [];
|
||||||
$this->attributeTypes = $data[1];
|
$this->attributeTypes = $data[1] ?? [];
|
||||||
$this->units = $data[2];
|
$this->units = $data[2] ?? [];
|
||||||
$this->apiUri = $data[3];
|
$this->apiUri = $data[3] ?? '';
|
||||||
$this->refId = $data[4];
|
$this->refId = $data[4] ?? 0;
|
||||||
|
|
||||||
return parent::render();
|
return parent::render();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user