aboutsummaryrefslogtreecommitdiffstats
path: root/app/javascript
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/helpers/CustomFieldsInputs.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/javascript/helpers/CustomFieldsInputs.js b/app/javascript/helpers/CustomFieldsInputs.js
index 93611538e..5240a9649 100644
--- a/app/javascript/helpers/CustomFieldsInputs.js
+++ b/app/javascript/helpers/CustomFieldsInputs.js
@@ -18,9 +18,11 @@ export default class CustomFieldsInputs extends Component {
}
listInput(cf){
+ let keys = _.orderBy(_.keys(this.options(cf).list_values), function(i){ return parseInt(i)})
return(
<Select2
- data={_.map(this.options(cf).list_values, (v, k) => {
+ data={_.map(keys, (k) => {
+ let v = this.options(cf).list_values[k]
return {id: k, text: (v.length > 0 ? v : '\u00A0')}
})}
ref={'custom_fields.' + cf.code}