Property dbase should not check tableID if none is specified

This commit is contained in:
Ralph Wessel
2024-10-22 16:31:30 +01:00
parent e27808b73d
commit eeb4dab690
@@ -118,7 +118,7 @@ std::vector<std::shared_ptr<Template>> ArchicadPropertyDBaseEngine::findTemplate
--------------------------------------------------------------------*/
std::unique_ptr<Template> ArchicadPropertyDBaseEngine::getObject(const BIMRecordID& objID, std::optional<BIMRecordID> tableID,
std::optional<BIMRecordID> documentID) const {
if (!validateCache() || (tableID != Template::propertyTableID))
if (!validateCache() || (tableID && (tableID != Template::propertyTableID)))
return nullptr;
if (auto found = m_cache->find(objID); found != m_cache->end())
return std::make_unique<Template>(*found->second);