diff --git a/Theme/Backend/Components/AttributeValueView.php b/Theme/Backend/Components/AttributeValueView.php index dd81147..ff3ff97 100644 --- a/Theme/Backend/Components/AttributeValueView.php +++ b/Theme/Backend/Components/AttributeValueView.php @@ -36,10 +36,10 @@ class AttributeValueView extends View /** * Attributes * - * @var \Modules\Attribute\Models\AttributeType + * @var null|\Modules\Attribute\Models\AttributeType * @since 1.0.0 */ - public AttributeType $type; + public ?AttributeType $type = null; /** * Attributes diff --git a/Theme/Backend/Components/value-view.tpl.php b/Theme/Backend/Components/value-view.tpl.php index a7a4aa4..00212b8 100644 --- a/Theme/Backend/Components/value-view.tpl.php +++ b/Theme/Backend/Components/value-view.tpl.php @@ -38,19 +38,21 @@ echo $this->data['nav']->render(); ?>
- type->datatype === AttributeValueType::_INT || $this->type->datatype === AttributeValueType::_FLOAT_INT) : ?> + type?->datatype === AttributeValueType::_INT || $this->type?->datatype === AttributeValueType::_FLOAT_INT) : ?> - type->datatype === AttributeValueType::_FLOAT) : ?> + type?->datatype === AttributeValueType::_FLOAT) : ?> - type->datatype === AttributeValueType::_STRING) : ?> + type?->datatype === AttributeValueType::_STRING) : ?> - type->datatype === AttributeValueType::_DATETIME) : ?> + type?->datatype === AttributeValueType::_DATETIME) : ?> - type->datatype === AttributeValueType::_BOOL) : ?> + type?->datatype === AttributeValueType::_BOOL) : ?> + +