Fix valori JS per checkbox
This commit is contained in:
parent
a2ab82b09f
commit
ca78f8763e
|
@ -91,7 +91,7 @@ Input.prototype.get = function () {
|
|||
// Conversione del valore per le checkbox
|
||||
let group = this.element.closest(".form-group");
|
||||
if (group.find("input[type=checkbox]").length){
|
||||
value = parseInt(value);
|
||||
value = parseInt(value) ? 1 : 0;
|
||||
}
|
||||
|
||||
return value;
|
||||
|
|
Loading…
Reference in New Issue