Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

null ref fix

  • Loading branch information...
commit ce39e3b8e504df49fdfda7550e81c017adab32d5 1 parent 3d834a6
@vmukhin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/assets/javascripts/formalin.js
View
2  app/assets/javascripts/formalin.js
@@ -160,7 +160,7 @@
if($.fn.formalin.defaults.fields[this.type]) {
fieldopts = $.extend({ }, $.formalin.defaults.fields[this.type], fieldopts)
}
- if(options.values[fieldopts.name]) {
+ if(options.values && options.values[fieldopts.name]) {
fieldopts.value = options.values[fieldopts.name].toString()
}
$form.append(builder[this.type].call(builder, fieldopts))
Please sign in to comment.
Something went wrong with that request. Please try again.