View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004918 | OXID eShop (all versions) | 3.2. HTML, CSS, JavaScript | public | 2013-02-09 13:14 | 2013-02-14 15:56 |
Reporter | Bugganeer | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.7.3 / 5.0.3 revision 54408 | ||||
Fixed in Version | 4.8.0_5.1.0_beta1 | ||||
Summary | 0004918: Dots in article oxID's lead to nonfunctional compare article javascript in oxcomparelinks.js | ||||
Description | Since i always import directly over SQL and i like my oxID's more meaningful than a hash, i stumbled over this one. In Line 34 and 35 of oxcomparelinks.js the id is just passed on to jQuery selector. $('a.compare.add[data-aid='+id+']').css('display','none'); $('a.compare.remove[data-aid='+id+']').css('display','block'); After you click on the add to compare button, all other articles are showing the remove from compare button as well. This issue is likely not limited to dots. | ||||
Steps To Reproduce | Add/Import Articles with oxid's which contain a dot. Click the add to compare list button in the front end. (Azure) | ||||
Additional Information | if (list) { $.each(list, function(id) { + id = id.replace(/\./,"\\."); $('a.compare.add[data-aid='+id+']').css('display','none'); $('a.compare.remove[data-aid='+id+']').css('display','block'); It did work for me, but as mentioned, other chars could break this script as well. | ||||
Tags | No tags attached. | ||||
Theme | Azure | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||