From c5a45b7d18bd061434f02a552f9e04d31e2c472e Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 15 Mar 2024 20:24:37 +0000 Subject: [PATCH] code fixes --- Models/AttributeType.php | 3 +++ Theme/Backend/Components/AttributeView.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Models/AttributeType.php b/Models/AttributeType.php index 5739a02..bc97731 100755 --- a/Models/AttributeType.php +++ b/Models/AttributeType.php @@ -89,6 +89,9 @@ class AttributeType implements \JsonSerializable */ public array $defaults = []; + // @todo Allow to reference enum instead of default values + // Currently we create language and country values which is insane + /** * Default attribute value * diff --git a/Theme/Backend/Components/AttributeView.php b/Theme/Backend/Components/AttributeView.php index 3fea6e8..3a57b84 100644 --- a/Theme/Backend/Components/AttributeView.php +++ b/Theme/Backend/Components/AttributeView.php @@ -65,7 +65,7 @@ class AttributeView extends View /** * Reference id * - * @var string + * @var int * @since 1.0.0 */ public int $refId = 0;