From 39b24479fde1d18ef08b1e081317e5212f24a91f Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Thu, 5 Dec 2024 12:13:37 +0100 Subject: [PATCH] generate field long name by shop method, assert return type --- Modules/Application/Model/D3ManufacturerLongDesc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Application/Model/D3ManufacturerLongDesc.php b/Modules/Application/Model/D3ManufacturerLongDesc.php index 0327775..65a3064 100644 --- a/Modules/Application/Model/D3ManufacturerLongDesc.php +++ b/Modules/Application/Model/D3ManufacturerLongDesc.php @@ -47,7 +47,7 @@ class D3ManufacturerLongDesc extends D3ManufacturerLongDesc_parent */ public function d3GetLongdesc(): Field { - $longName = $this->getCoreTableName().'__'.strtolower(Constants::D3_OXMANUFACTURERS_LONGDESC_FIELDNAME); - return $this->$longName; + $longName = $this->_getFieldLongName(Constants::D3_OXMANUFACTURERS_LONGDESC_FIELDNAME); + return $this->$longName ?: oxNew(Field::class); } }