Test fixes
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled

This commit is contained in:
Dennis Eichhorn 2024-05-16 02:14:54 +00:00
parent e89c03cb59
commit cfe56d2a4f
12 changed files with 24 additions and 29 deletions

View File

@ -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

View File

@ -1,5 +0,0 @@
# Structure
## ER
![ER](Modules/News/Docs/Dev/img/er.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 KiB

View File

@ -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();
} }

View File

@ -12,7 +12,7 @@
}, },
"creator": { "creator": {
"name": "Jingga", "name": "Jingga",
"website": "jingga.app" "website": "https://jingga.app"
}, },
"description": "Attribute module.", "description": "Attribute module.",
"directory": "Attribute", "directory": "Attribute",