View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004534 | OXID eShop (all versions) | 1. ----- eShop frontend ----- | public | 2012-09-19 11:15 | 2013-03-12 09:06 |
Reporter | WBL_BjoernLange | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Fixed in Version | 4.8.0_5.1.0_beta1 | ||||
Summary | 0004534: Wrong Input-Handling of oxajax.js | ||||
Description | Taken frmo 4.7b2: ajax : function(activator, params) { var self = this; var inputs = {}; var action = ""; var type = ""; if (activator[0].tagName == 'FORM') { $("input", activator).each(function() { inputs[this.name] = this.value; }); If the value is for example a checkbox, not only the value is important but also, if the checkbox is checked or not. | ||||
Tags | No tags attached. | ||||
Theme | Azure | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
|
Hi, added check for checkboxes like this: $("input", activator).each(function() { if (this.type == 'checkbox' && !this.checked) return true; inputs[this.name] = this.value; }); |
|
The Bug still does exist. Taken from <http://demoshop.oxid-esales.com/community-edition/out/azure/src/js/widgets/oxajax.js?1359125455>: if (activator[0].tagName == 'FORM') { $("input", activator).each(function() { inputs[this.name] = this.value; }); action = activator.attr("action"); type = activator.attr("method"); } else if (activator[0].tagName == 'A') { action = activator.attr("href"); } Support for selects would be nice aswell. |
|
it will be released with Next Major version 5.1 |