View Issue Details

IDProjectCategoryView StatusLast Update
0002673OXID eShop (all versions)1.01. Products (product, categories, manufacturer, promotions etc.)public2012-12-07 14:28
Reporterasarturas 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.4.5 revision 31315 
Target VersionFixed in Version4.5.3 revision 39087 
Summary0002673: Parent articles of variants should be loaded in current language of variant
Descriptionon oxArticle::getParentArticle() method variant's current language is not considered, so if current shop language=0 and loaded variant language=1 , then parent is loaded in language=0 instead of language=1 , so in this case if some multilingual variant field is not set, then it's set to parent field value (of different language).
Steps To Reproduce1. Empty long description of article variant.
2. Load variant in different language, than current shop language
3. Print out long description field

Expected behaviour:
long description is set to parent field in same language as variant is.

Actual Behaviour:
Long description is set to parent field in current shop language (which is different).
Additional InformationPossible hotfix:

in oxArticle::getParentArticle() before loading parent article, set parent language to variant language:
setLanguage($this->getLanguage());
TagsProducts
Theme
BrowserAll
PHP Versionany
Database Versionany

Relationships

related to 0002676 resolvedArunas Sometimes oxArticle::getLink() method returns wrong url for variant 

Activities

asarturas

2011-04-01 19:54

reporter   ~0004307

Issue 0002676 is related to this. Please see my comment there (https://bugs.oxid-esales.com/view.php?id=2676#c4306)

birute_meilutyte

2011-05-06 13:22

reporter   ~0004498

@developers: check from source code side if such issue still exist and if offered solution is correct.