View Issue Details

IDProjectCategoryView StatusLast Update
0004252OXID eShop (all versions)1.01. Products (product, categories, manufacturer, promotions etc.)public2012-12-07 14:23
ReporterMitmacher Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionwon't fix 
Product Version4.6.2 revision 46646 
Summary0004252: Javascript error (in oxid.js) when using rating link (stars) twice at the top of product details in basic theme
DescriptionThe error occurs if you have already rated a product and use the (anchor) link at the top (only stars) once again. That happens because this link tries to set the width of "current_rate" by calling oxid.review.rate(), but there is no "current_rate" anymore!
Steps To Reproduce- Open any product details page in demo shop.
- Login and rate (not only comment) the product.
- Revisit the product and click the rating stars at the top.
- The page is scrolled down to the anchor, the review form is opened (without rating now!) and the javascript error is thrown.
Additional InformationA simple bugfix for oxid.js could be replacing line 305 with this:

var _rate = document.getElementById('current_rate')
if ( _rate !== null )
    _rate.style.width = (value * 20) + '%';

TagsRatings, Reviews
ThemeBasic
BrowserAll
PHP Versionany
Database Versionany

Activities

jurate.baseviciene

2012-08-08 12:06

reporter   ~0007263

Hi,

Thanks a lot for submitting this issue, but we cant resolve this issue, because we supports only Azure theme. Basic theme in new version is not supported.
Greetings,