Skip to content
Browse files

null ref fix

  • Loading branch information...
1 parent 3d834a6 commit ce39e3b8e504df49fdfda7550e81c017adab32d5 @vmukhin committed Dec 1, 2011
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))

0 comments on commit ce39e3b

Please sign in to comment.
Something went wrong with that request. Please try again.