mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 09:01:40 +01:00
Fix: Works with checkbox htdocs/core/class/html.form.class.php
This commit is contained in:
@@ -2254,7 +2254,10 @@ class Form
|
||||
if ($inputarray.length>0) {
|
||||
$.each($inputarray, function() {
|
||||
var inputname = this;
|
||||
var inputvalue = $("#" + this).val();
|
||||
var more = \'\';
|
||||
if ($("#" + this).attr("type") == \'checkbox\') { more = \':checked\'; }
|
||||
var inputvalue = $("#" + this + more).val();
|
||||
if (typeof inputvalue == \'undefined\') { inputvalue=\'\'; }
|
||||
options += \'&\' + inputname + \'=\' + inputvalue;
|
||||
});
|
||||
//alert(options);
|
||||
|
||||
Reference in New Issue
Block a user