mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-23 20:22:58 +03:00
COUNT function has been fixed
This commit is contained in:
parent
8fd7c27837
commit
6529ced062
@ -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()){
|
||||
|
Loading…
Reference in New Issue
Block a user