Commit 40867ca7 authored by neo's avatar neo

[bugfix] use replace instead of replace all

parent 6c91a5cc
...@@ -578,7 +578,7 @@ public class ReportGeneratorImpl extends VatAbstractService implements ReportGen ...@@ -578,7 +578,7 @@ public class ReportGeneratorImpl extends VatAbstractService implements ReportGen
for (PCTEntity entity : entities) { for (PCTEntity entity : entities) {
result = result.add(pctCache.get(entity)); result = result.add(pctCache.get(entity));
} }
k.setParsedFormula(k.getParsedFormula().replaceAll(pctStr, result.toString())); k.setParsedFormula(k.getParsedFormula().replace(pctStr, result.toString()));
}); });
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment