Skip to content

Commit d3095a6

Browse files
fixed expert special case
1 parent 9f349f0 commit d3095a6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/webfrontend/CustomDataTypeDante.coffee

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ class CustomDataTypeDANTE extends CustomDataTypeWithCommons
423423
type: "match"
424424
mode: "token"
425425
bool: "must",
426-
phrase: false
426+
phrase: true
427427
fields: [ @path() + '.' + @name() + ".conceptAncestors" ]
428428
]
429429
if ! data[@name()]
@@ -797,7 +797,9 @@ class CustomDataTypeDANTE extends CustomDataTypeWithCommons
797797
else
798798
cdata.conceptName = resultJSKOS.prefLabel[Object.keys(resultJSKOS.prefLabel)[0]]
799799

800-
opts.data[that.name(opts)] = CUI.util.copyObject(cdata)
800+
if opts?.data
801+
opts.data[that.name(opts)] = CUI.util.copyObject(cdata)
802+
801803
if opts?.callfrompoolmanager
802804
if opts.data
803805
cdata = CUI.util.copyObject(cdata)

0 commit comments

Comments
 (0)