View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004252 | OXID eShop (all versions) | 1.01. Products (product, categories, manufacturer, promotions etc.) | public | 2012-07-13 10:26 | 2012-12-07 14:23 |
Reporter | Mitmacher | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | won't fix | ||
Product Version | 4.6.2 revision 46646 | ||||
Summary | 0004252: Javascript error (in oxid.js) when using rating link (stars) twice at the top of product details in basic theme | ||||
Description | The 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 Information | A 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) + '%'; | ||||
Tags | Ratings, Reviews | ||||
Theme | Basic | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||