mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-25 04:54:40 +03:00
1.4.4
This commit is contained in:
commit
2cc8569b1c
@ -56,7 +56,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc
|
|||||||
|
|
||||||
LIMEREPORT_VERSION_MAJOR = 1
|
LIMEREPORT_VERSION_MAJOR = 1
|
||||||
LIMEREPORT_VERSION_MINOR = 4
|
LIMEREPORT_VERSION_MINOR = 4
|
||||||
LIMEREPORT_VERSION_RELEASE = 2
|
LIMEREPORT_VERSION_RELEASE = 4
|
||||||
|
|
||||||
LIMEREPORT_VERSION = '\\"$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}\\"'
|
LIMEREPORT_VERSION = '\\"$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}\\"'
|
||||||
DEFINES += LIMEREPORT_VERSION_STR=\"$${LIMEREPORT_VERSION}\"
|
DEFINES += LIMEREPORT_VERSION_STR=\"$${LIMEREPORT_VERSION}\"
|
||||||
|
@ -856,7 +856,7 @@ QList<QString> DataSourceManager::childDatasources(const QString &parentDatasour
|
|||||||
foreach(QString datasourceName, dataSourceNames()){
|
foreach(QString datasourceName, dataSourceNames()){
|
||||||
if (isSubQuery(datasourceName)){
|
if (isSubQuery(datasourceName)){
|
||||||
SubQueryHolder* sh = dynamic_cast<SubQueryHolder*>(dataSourceHolder(datasourceName));
|
SubQueryHolder* sh = dynamic_cast<SubQueryHolder*>(dataSourceHolder(datasourceName));
|
||||||
if (sh->masterDatasource().compare(parentDatasourceName,Qt::CaseInsensitive)==0){
|
if (sh && sh->masterDatasource().compare(parentDatasourceName,Qt::CaseInsensitive)==0){
|
||||||
result.append(datasourceName);
|
result.append(datasourceName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -868,7 +868,8 @@ void DataSourceManager::invalidateChildren(const QString &parentDatasourceName)
|
|||||||
{
|
{
|
||||||
foreach(QString datasourceName, childDatasources(parentDatasourceName)){
|
foreach(QString datasourceName, childDatasources(parentDatasourceName)){
|
||||||
SubQueryHolder* sh = dynamic_cast<SubQueryHolder*>(dataSourceHolder(datasourceName));
|
SubQueryHolder* sh = dynamic_cast<SubQueryHolder*>(dataSourceHolder(datasourceName));
|
||||||
sh->invalidate(designTime()?IDataSource::DESIGN_MODE:IDataSource::RENDER_MODE);
|
if (sh)
|
||||||
|
sh->invalidate(designTime()?IDataSource::DESIGN_MODE:IDataSource::RENDER_MODE);
|
||||||
invalidateChildren(datasourceName);
|
invalidateChildren(datasourceName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1110,7 +1111,12 @@ void DataSourceManager::collectionLoadFinished(const QString &collectionName)
|
|||||||
if (!m_datasources.contains(it.value()->queryName().toLower())){
|
if (!m_datasources.contains(it.value()->queryName().toLower())){
|
||||||
connect(it.value(), SIGNAL(queryTextChanged(QString,QString)),
|
connect(it.value(), SIGNAL(queryTextChanged(QString,QString)),
|
||||||
this, SLOT(slotQueryTextChanged(QString,QString)));
|
this, SLOT(slotQueryTextChanged(QString,QString)));
|
||||||
putHolder(it.value()->queryName(),new QueryHolder(it.value()->queryText(), it.value()->connectionName(), this));
|
putHolder(it.value()->queryName(),new SubQueryHolder(
|
||||||
|
it.value()->queryText(),
|
||||||
|
it.value()->connectionName(),
|
||||||
|
it.value()->master(),
|
||||||
|
this)
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
delete it.value();
|
delete it.value();
|
||||||
it.remove();
|
it.remove();
|
||||||
|
@ -566,8 +566,11 @@ QString ScriptEngineManager::expandDataFields(QString context, ExpandType expand
|
|||||||
context.replace(rx.cap(0),fieldValue);
|
context.replace(rx.cap(0),fieldValue);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
QString error = QString("Field %1 not found in %2 !!! ").arg(field).arg(reportItem->objectName());
|
QString error;
|
||||||
dataManager()->putError(error);
|
if (reportItem){
|
||||||
|
error = QString("Field %1 not found in %2 !!! ").arg(field).arg(reportItem->objectName());
|
||||||
|
dataManager()->putError(error);
|
||||||
|
}
|
||||||
varValue = QVariant();
|
varValue = QVariant();
|
||||||
if (!dataManager()->reportSettings() || !dataManager()->reportSettings()->suppressAbsentFieldsAndVarsWarnings())
|
if (!dataManager()->reportSettings() || !dataManager()->reportSettings()->suppressAbsentFieldsAndVarsWarnings())
|
||||||
context.replace(rx.cap(0),error);
|
context.replace(rx.cap(0),error);
|
||||||
|
Loading…
Reference in New Issue
Block a user