Skip to content

Commit 18beab8

Browse files
committed
- converted expression to SPEL
1 parent c4c5308 commit 18beab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forms/mongo/insertParatooProtocolConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ var protocols = {
346346
"dataType": "species"
347347
},
348348
"recruitment-sapling-and-seedling-count.juvenile_count": {
349-
"dwcExpression": "(juvenile_count ?:0) + (seedling_count ?:0) + (sapling_count ?:0)",
349+
"dwcExpression": "(['juvenile_count'] == null ? 0 : ['juvenile_count']) + (['seedling_count'] == null ? 0 : ['seedling_count']) + (['sapling_count'] == null ? 0 :['sapling_count'])",
350350
"dwcAttribute": "individualCount"
351351
},
352352
"recruitment-sapling-and-seedling-count.voucher_full.host_species": {

0 commit comments

Comments
 (0)