Fixed dbv1 migration to match applied data patches

This commit is contained in:
Stefan Zermatten
2022-02-25 12:27:52 +02:00
parent f1b4071c46
commit 0ffa736143

View File

@@ -217,7 +217,9 @@ function getInlineComputationTransforms(key){
function calculationUp(val){
if (typeof val !== 'string') return val;
return val.replace('.value', '.total').replace('.currentValue', '.value');
return val.replace(/#(\w+).(\w+)Result/g, '#$1.$2')
.replace('.value', '.total')
.replace('.currentValue', '.value');
}
function calculationDown(val){