View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002791 | OXID eShop (all versions) | 2. ----- eShop backend (admin) ----- | public | 2011-04-27 09:03 | 2011-08-08 15:06 |
Reporter | csimon | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.5.0 revision 34568 | ||||
Fixed in Version | 4.6.0_beta2 | ||||
Summary | 0002791: article_pictures.tpl: if empty thumbnail url is returned for some reason, session gets lost | ||||
Description | article_pictures.tpl line 67: [{assign var="sThumbUrl" value=$edit->getThumbnailUrl()}] <div class="picPreview"><img src="[{$sThumbUrl}]"></div> If $sThumbUrl is empty for some reason, the img causes a pageview which causes session problems so that you get logged out if you use some other admin function (or save a picture). And this problem will appear every time you click on the pictures tab. | ||||
Steps To Reproduce | I cannot say how to reproduce an empty result of oxArticle::getThumbnailUrl. | ||||
Additional Information | It helps to simply modify code like this: [{assign var="sThumbUrl" value=$edit->getThumbnailUrl()}] <div class="picPreview">[{ if $sThumbUrl }]<img src="[{$sThumbUrl}]">[{ /if }]</div> That allows the user to correct the wrong thumbnail | ||||
Tags | No tags attached. | ||||
Theme | |||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||