File tree 1 file changed +10
-8
lines changed
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -1136,6 +1136,7 @@ class CustomDataTypeDANTE extends CustomDataTypeWithCommons
1136
1136
else
1137
1137
# else get first voc from given voclist (1-n)
1138
1138
vocParameter = that .getActiveVocabularyName (cdata, opts)
1139
+ vocParameter = vocParameter .replace / ,/ g , " |"
1139
1140
vocParameter = vocParameter .split (' |' )
1140
1141
vocParameter = vocParameter[0 ]
1141
1142
@@ -1364,14 +1365,15 @@ class CustomDataTypeDANTE extends CustomDataTypeWithCommons
1364
1365
value : that .getVocabularyNameFromDatamodel (opts)
1365
1366
)
1366
1367
select_items .push item
1367
- # add vocs to select
1368
- for entry, key in data
1369
- item = (
1370
- text : entry .prefLabel .de
1371
- value : entry .notation [0 ]
1372
- )
1373
- select_items .push item
1374
-
1368
+ # add vocs to select, keep sorting from parameter
1369
+ for vocEntry, vocKey in vocTestArr
1370
+ for entry, key in data
1371
+ if vocEntry == entry .notation [0 ]
1372
+ item = (
1373
+ text : entry .prefLabel .de
1374
+ value : entry .notation [0 ]
1375
+ )
1376
+ select_items .push item
1375
1377
thisSelect .enable ()
1376
1378
dfr .resolve (select_items)
1377
1379
)
You can’t perform that action at this time.
0 commit comments