Skip to content

Commit

Permalink
Update RefWidget to use modelName, not label, in the popups.
Browse files Browse the repository at this point in the history
  • Loading branch information
leweaver committed Feb 24, 2014
1 parent bdd9092 commit e3e751f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/forms/widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ exports.RefWidget = exports.ChoicesWidget.extend({
throw new TypeError('model was not provided');
}
this._super(options);
this.refForm = options.refForm || options.ref.label;
this.refForm = options.refForm || options.ref.modelName;
this.attrs['data-ref'] = this.refForm;
}
});
Expand Down

0 comments on commit e3e751f

Please sign in to comment.