From 6529ced062c619d3549349fe3fedaf9e514738ea Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Wed, 8 Mar 2017 04:59:40 +0300 Subject: [PATCH] COUNT function has been fixed --- limereport/lrscriptenginemanager.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/limereport/lrscriptenginemanager.cpp b/limereport/lrscriptenginemanager.cpp index 5b6faa8..613b4dc 100644 --- a/limereport/lrscriptenginemanager.cpp +++ b/limereport/lrscriptenginemanager.cpp @@ -1295,13 +1295,7 @@ void JSFunctionDesc::setScriptWrapper(const QString &scriptWrapper) QVariant ScriptFunctionsManager::calcGroupFunction(const QString &name, const QString &expressionID, const QString &bandName) { if (m_scriptEngineManager->dataManager()){ - QString expression = ""; - if (name.compare("COUNT",Qt::CaseInsensitive) == 0){ - expression = " "; - } else { - expression = m_scriptEngineManager->dataManager()->getExpression(expressionID); - } - + QString expression = m_scriptEngineManager->dataManager()->getExpression(expressionID); GroupFunction* gf = m_scriptEngineManager->dataManager()->groupFunction(name,expression,bandName); if (gf){ if (gf->isValid()){