mirror of
https://github.com/ansible/awx.git
synced 2026-08-05 04:20:00 -02:30
AC-1023 AC-1025 fixed drag-n-drop issues. Linting exposed a datatype mismatch issue.
This commit is contained in:
@@ -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']];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user