View Issue Details

IDProjectCategoryView StatusLast Update
0002791OXID eShop (all versions)2. ----- eShop backend (admin) -----public2011-08-08 15:06
Reportercsimon 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.5.0 revision 34568 
Target VersionFixed in Version4.6.0_beta2 
Summary0002791: article_pictures.tpl: if empty thumbnail url is returned for some reason, session gets lost
Descriptionarticle_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 ReproduceI cannot say how to reproduce an empty result of oxArticle::getThumbnailUrl.
Additional InformationIt 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
TagsNo tags attached.
Theme
BrowserAll
PHP Versionany
Database Versionany

Activities

birute_meilutyte

2011-04-29 11:00

reporter   ~0004416

@developers: check from source code side, if such issue exist.

Linas Kukulskis

2011-08-08 15:06

reporter   ~0004949

added if statement