View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003151 | OXID eShop (all versions) | 2. ----- eShop backend (admin) ----- | public | 2011-08-17 11:09 | 2011-12-14 14:01 |
Reporter | mzaunseder | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.5.0 revision 34568 | ||||
Fixed in Version | 4.6.0_beta2 | ||||
Summary | 0003151: Banner image gets deleted if another image for another language is uploaded | ||||
Description | If one uploads a picture for the banner and copys the banner into another language and wants to upload another picture, the first picture gets deleted on the server. | ||||
Steps To Reproduce | Make a new banner. Upload a picture for this banner (in my case it's the german picture). After that, click on the "copy" button to copy the banner to the english language. Upload the english picture (which has in my case another filename as the german picture). After clicking "save" you can switch to the german version and the german picture is gone. The only weird thing is, if you upload the german picture after this again, everything works and no pictures are deleted. | ||||
Tags | No tags attached. | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
|
I noticed that the german image gets always deleted if you save something in the english version of the banner. For example sort order or link. It doesn't matter which field is updated, the german image will be deleted afterwards. Maybe this behavior is caused by the Actions_Main::save method. There is this line: oxUtilsPic::getInstance()->overwritePic( $oPromotion, 'oxactions', 'oxpic', 'PROMO', oxUtilsFile::PROMO_PICTURE_DIR, $aParams, $myConfig->getPictureDir(false)); |
|
Can confirm this problem. |
|
@developers: I can not reproduce it. Can you check if there is an issue in the source code in comment, posted by mzaunseder? |
|
This picture overwriting exists only for PE version. But it does not work correctly in this case (for multilanguage picture fields). So we removed it. Now new pictures will be loaded, but old not deleted, like it is done fro EE version. |