diff --git a/Bootstrap.Admin/Content/js/longbow.dataentity.js b/Bootstrap.Admin/Content/js/longbow.dataentity.js index 837fc1d6..3b950b94 100644 --- a/Bootstrap.Admin/Content/js/longbow.dataentity.js +++ b/Bootstrap.Admin/Content/js/longbow.dataentity.js @@ -13,7 +13,9 @@ var ctl = $("#" + this.options.map[name]); ctl.val(value[name]); if (ctl.attr('data-toggle') == "dropdown") { - ctl.children(':first').text(ctl.next().find('[data-val="' + value[name] + '"]').text()); + var val = value[name]; + if (!val) val = ctl.attr('data-default-val'); + ctl.children(':first').text(ctl.next().find('[data-val="' + val + '"]').text()); } } },