diff --git a/Application/Controller/Admin/ManufacturerInfoLongdesc.php b/Application/Controller/Admin/ManufacturerInfoLongdesc.php index 5e5ad9c..777e98a 100644 --- a/Application/Controller/Admin/ManufacturerInfoLongdesc.php +++ b/Application/Controller/Admin/ManufacturerInfoLongdesc.php @@ -113,4 +113,20 @@ class ManufacturerInfoLongdesc extends AdminDetailsController { return $aParams = Registry::getRequest()->getRequestEscapedParameter("editval")['oxmanufacturers__D3DESCRIPTION']; } + + /** + * inhaltliche Uebernahme analog Article_Main + * wird genutzt zum Abspeichern der Artikel-Langbeschreibung + * + * @param $sValue + * + * @return mixed + */ + protected function _processLongDesc($sValue) + { + $aSearch = [' ', '&', '"', '&lang=', '
', '
']; + $aReplace = [' ', '&', '"', '&lang=', '', '']; + + return str_replace($aSearch, $aReplace, $sValue); + } } \ No newline at end of file diff --git a/Modules/Application/Model/D3ManufacturerLongDesc.php b/Modules/Application/Model/D3ManufacturerLongDesc.php index 73c3f2d..cfaefcb 100644 --- a/Modules/Application/Model/D3ManufacturerLongDesc.php +++ b/Modules/Application/Model/D3ManufacturerLongDesc.php @@ -28,4 +28,12 @@ class D3ManufacturerLongDesc extends D3ManufacturerLongDesc_parent return true; } + + /** + * @return string + */ + public function d3GetLongdesc(): string + { + return $this->getFieldData(Constants::D3_OXMANUFACTURERS_LONGDESC_FIELDNAME); + } } \ No newline at end of file