View Issue Details

IDProjectCategoryView StatusLast Update
0003454OXID eShop (all versions)1.01. Products (product, categories, manufacturer, promotions etc.)public2012-12-07 14:27
ReporterDaywalker Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.5.5 revision 40299 
Fixed in Version4.6.5 revision 49955 
Summary0003454: Article Long Description is false
DescriptionIf 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 Reproduce1. 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
TagsProducts
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Relationships

related to 0004060 resolvededvardas_gineika changes in longdesc of father are not updatet to variants if inherited 
parent of 0002956 resolvedvilma_liorensaityte Article Long Description doesnt inherit from parent article to variant 

Activities

Daywalker

2012-01-08 12:50

reporter   ~0005592

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() );
}

Daywalker

2012-10-30 14:11

reporter   ~0007671

Last edited: 2012-10-30 14:17

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.

Daywalker

2012-10-31 09:20

reporter   ~0007686

Now i Update on 4.6.5 and the error isn't there

Bug can be closed

ray

2012-10-31 09:27

reporter   ~0007687

related / duplicate?
https://bugs.oxid-esales.com/view.php?id=4060