client/skr/components/TermsChooser.cjsx in stockor-0.4.0 vs client/skr/components/TermsChooser.cjsx in stockor-0.5.0
- old
+ new
@@ -7,11 +7,11 @@
useFinder: React.PropTypes.bool
getDefaultProps: ->
label: 'Payment Terms', name: 'terms'
- dataObjects:
+ modelBindings:
query: ->
new Lanes.Models.Query({
syncOptions: @props.syncOptions, autoRetrieve: true
src: Skr.Models.PaymentTerm, fields: [
{ id:'id', visible: false}
@@ -34,7 +34,7 @@
else
<LC.SelectField sm=3
choices={Skr.Models.PaymentTerm.all.models}
labelField="code"
{...@props}
- fetchWhenOpen={false}
+ fetchOnSelect={false}
model={@props.model} />