View Issue Details

IDProjectCategoryView StatusLast Update
0006286OXID eShop (all versions)4.09. SEO, SEO URLpublic2015-12-14 10:02
Status acknowledgedResolutionopen 
Product Version4.9.5 / 5.2.5 
Target VersionFixed in Version 
Summary0006286: _prepareMetaDescription: Parameter sMeta never used
DescriptionI am writing a custom SEO module. The method "_prepareMetaDescription" in Class "aList" overwrites the base method defined in "oxUBase".

In aList it has the sMeta Parameter as first parameter but does nothing with it. So it is impossible to set a custom meta description and use the _prepareMetaDescription function for it. In oxUBase it's correct.

Also in oxUBase function "getMetaDescription" the function _prepareMetaDescription is actually called with an argument $sDescription – but this will never work, as described above.

I changed the function in my fork of OXID eShop on Github, so you better understand the problem. The code is tested in EE 5.2.5 and allows custom meta description as well as the usual behaviour:
Additional InformationGitHub Commit:
TagsNo tags attached.
ThemeNot defined
BrowserNot defined
PHP Version5.4
Database VersionNot defined



2015-12-14 09:45

developer   ~0011374

The reporter is right.
But since the method aList::_prepareMetaDescription is never used, I assume that it can be removed anyway. The class aList uses each time the method _prepareMetaDescription from the class oxUBase, because the callings are made with they keyword parent (parent::_prepareMetaDescription).