mirror of
https://github.com/Karaka-Management/oms-Attribute.git
synced 2026-02-17 18:08:42 +00:00
Test fixes
This commit is contained in:
parent
e89c03cb59
commit
cfe56d2a4f
|
|
@ -46,13 +46,13 @@
|
|||
"null": false
|
||||
},
|
||||
"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",
|
||||
"type": "TINYINT(1)",
|
||||
"null": false
|
||||
},
|
||||
"attribute_attr_type_pattern": {
|
||||
"description": "This is a regex validation pattern.",
|
||||
"comment": "This is a regex validation pattern.",
|
||||
"name": "attribute_attr_type_pattern",
|
||||
"type": "VARCHAR(255)",
|
||||
"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
|
||||
{
|
||||
/** @var array{0:\Modules\Attribute\Models\Attribute[]} $data */
|
||||
$this->attributes = $data[0];
|
||||
$this->attributeTypes = $data[1];
|
||||
$this->units = $data[2];
|
||||
$this->apiUri = $data[3];
|
||||
$this->refId = $data[4];
|
||||
$this->attributes = $data[0] ?? [];
|
||||
$this->attributeTypes = $data[1] ?? [];
|
||||
$this->units = $data[2] ?? [];
|
||||
$this->apiUri = $data[3] ?? '';
|
||||
$this->refId = $data[4] ?? 0;
|
||||
|
||||
return parent::render();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user