View Issue Details

IDProjectCategoryView StatusLast Update
0002168OXID eShop (all versions)1.01. Products (product, categories, manufacturer, promotions etc.)public2012-12-07 14:27
Reporterwebtools Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.4.3 revision 30016 
Fixed in Version4.4.4 revision 30554 
Summary0002168: Picture Handling with copied articles
DescriptionAfter copying 1 article, change 1 of 2 pictures (upload 1 new).

Now the ZOOM-picture which is changed and definetly on the server, is shown in the admin-panel. At the front-end, the zoom-picture isn`t shown anymore.

So only 1 of 2 pictures is shown. But the article HAS 2 pictures.

- the unchanged picture is shown
- the new one isn`t shown

One of my customers uses the zoom-pictures directly on his detail-sites instead of the oxpic1-x-Pictures. Now he doesn`t get the right pictures out any more.

 
TagsProducts
Theme
BrowserAll
PHP Versionany
Database Versionany

Relationships

has duplicate 0002169 closedbirute_meilutyte Zoom pictures of a master article will be deleted on upload new pictures on the copied article instance 

Activities

mkr

2010-10-21 16:24

reporter   ~0003623

Some Hack:
in function copyArticle in admin/article_main.php you can add these code before $oArticle->save() to avoid coping article picture data. Also the oxsoldamount will be set 0 to avoid wrong oxarticlelist::loadTop5Articles handling.
Use this of your own rsik!!!

Also nice will be to have oxobject2seodata filled data, e.g. description and keywords. But you have to use the seoencoder and a new seourl(how to generate a new unique one?) or direct sql statments to handle this.

            // reset pictures
            $oArticle->oxarticles__oxicon = new oxField();
            $oArticle->oxarticles__oxthumb = new oxField();
            $oArticle->oxarticles__oxpicsgenerated = new oxField( 0 );
            $oArticle->oxarticles__oxpic1 = new oxField();
            $oArticle->oxarticles__oxpic2 = new oxField();
            $oArticle->oxarticles__oxpic3 = new oxField();
            $oArticle->oxarticles__oxpic4 = new oxField();
            $oArticle->oxarticles__oxpic5 = new oxField();
            $oArticle->oxarticles__oxpic6 = new oxField();
            $oArticle->oxarticles__oxpic7 = new oxField();
            $oArticle->oxarticles__oxpic8 = new oxField();
            $oArticle->oxarticles__oxpic9 = new oxField();
            $oArticle->oxarticles__oxpic10 = new oxField();
            $oArticle->oxarticles__oxpic11 = new oxField();
            $oArticle->oxarticles__oxpic12 = new oxField();
            $oArticle->oxarticles__oxzoom1 = new oxField();
            $oArticle->oxarticles__oxzoom2 = new oxField();
            $oArticle->oxarticles__oxzoom3 = new oxField();
            $oArticle->oxarticles__oxzoom4 = new oxField();
             
            // clear oxsoldamount to bugfix top5 handling
            $oArticle->oxarticles__oxsoldamount = new oxField( 0 );