View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003454 | OXID eShop (all versions) | 1.01. Products (product, categories, manufacturer, promotions etc.) | public | 2011-12-20 15:21 | 2012-12-07 14:27 |
Reporter | Daywalker | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.5.5 revision 40299 | ||||
Fixed in Version | 4.6.5 revision 49955 | ||||
Summary | 0003454: Article Long Description is false | ||||
Description | If you Copy one article with variants and do not delete them but change them the article has the long Description from the copied one | ||||
Steps To Reproduce | 1. Login into demoshop backend and chose the article 1501 Klebeband DACRON KITEFIX 2. Copie them to article 1501_1 Klebeband 2 DACRON KITEFIX 3. Go to Variants choose them but not delete 4. Go to the frontend 5. choose article 1501_1 6. If the bug 0002956 fixed change the variants und you can see the Long Description from the article 1501 | ||||
Tags | Products | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
related to | 0004060 | resolved | edvardas_gineika | changes in longdesc of father are not updatet to variants if inherited |
parent of | 0002956 | resolved | vilma_liorensaityte | Article Long Description doesnt inherit from parent article to variant |
|
Here the solution: Change in oxarticle.php: In function getArticleLongDesc change: // choosing which to get.. $sOxid = $sOxid === null ? $this->getId() : $sOxid; $sViewName = getViewName( 'oxartextends', $this->getLanguage() ); $sDbValue = oxDb::getDb()->getOne( "select oxlongdesc from {$sViewName} where oxid = ?", array( $sOxid ) ); if ( $sDbValue != false ){ $this->_oLongDesc->setValue( $sDbValue, oxField::T_RAW ); } elseif ( $this->oxarticles__oxparentid->value ) { $this->_oLongDesc->setValue( $this->getParentArticle()->getArticleLongDesc()->getRawValue(), oxField::T_RAW ); } with: // choosing which to get.. $sOxid = $sOxid === null ? $this->getId() : $sOxid; $sViewName = getViewName( 'oxartextends', $this->getLanguage() ); if ( ( $sDbValue = oxDb::getDb()->getOne( "select oxlongdesc from {$sViewName} where oxid = ?", array( $sOxid ) ) ) !== false ) { $this->_oLongDesc->setValue( $sDbValue, oxField::T_RAW ); } and in _assignParentFieldValues() search: $this->_assignParentFieldValue( $sFieldName ); } and change with: //assing long description $sLongDesc = $this->getArticleLongDesc()->getRawValue(); if ( $sLongDesc === null || $sLongDesc == '' ) { $this->setArticleLongDesc( $this->getParentArticle()->getArticleLongDesc()->getRawValue() ); } |
|
i found this Error in Version 4.6.4 again. in the table oxartextends the field OXLONGDESC in now always filled. The main problem is: if you change details bei the father article and choose one variant the changes are not there. |
|
Now i Update on 4.6.5 and the error isn't there Bug can be closed |
|
related / duplicate? https://bugs.oxid-esales.com/view.php?id=4060 |