X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/6515d67111202f746a1a58c66dcf2261636f2a26..af57fe565c8a5d6fc36ea5c3dc83065f69534b04:/src/editor/views/dialog/dialog.js

diff --git a/src/editor/views/dialog/dialog.js b/src/editor/views/dialog/dialog.js
index 7d9f775..0e45dd7 100644
--- a/src/editor/views/dialog/dialog.js
+++ b/src/editor/views/dialog/dialog.js
@@ -70,7 +70,10 @@ define(function(require) {
 
             (this.options.fields || []).forEach(function(field) {
                 var widget = view.$('[name=' + field.name +']');
-                formData[field.name] = widget.val();
+                var widget_type = widget.attr('type');
+                if (!(widget_type == 'checkbox' || widget_type == 'radio') || widget.is(':checked')) {
+                    formData[field.name] = widget.val();
+                }
             });
 
             this.trigger('execute', {