AC-1023 AC-1025 fixed drag-n-drop issues. Linting exposed a datatype mismatch issue.

This commit is contained in:
Chris Houseknecht
2014-02-06 15:19:58 -05:00
parent 11d8387120
commit c52818ecee
4 changed files with 12 additions and 11 deletions

View File

@@ -201,7 +201,7 @@ function($rootScope, $location, $cookieStore, $compile, SearchWidget, PaginateWi
applyDefaults: function() {
for (var fld in this.form.fields) {
if (this.form.fields[fld].default || this.form.fields[fld].default === 0) {
if (this.form.fields[fld]['default'] || this.form.fields[fld]['default'] === 0) {
if (this.form.fields[fld].type === 'select' && this.scope[fld + '_options']) {
this.scope[fld] = this.scope[fld + '_options'][this.form.fields[fld]['default']];
}