Merge PR #526: Fix Things filter by param method

pull/539/head
jenkins 2022-06-16 00:20:47 +02:00
commit 45c20c56cc
1 changed files with 1 additions and 1 deletions

View File

@ -739,7 +739,7 @@ Things Things::filterByParam(const ParamTypeId &paramTypeId, const QVariant &val
{
Things ret;
foreach (Thing* thing, *this) {
if (paramTypeId != paramTypeId) {
if (!thing->thingClass().paramTypes().findById(paramTypeId).isValid()) {
continue;
}
if (!value.isNull() && thing->paramValue(paramTypeId) != value) {