Fix a bug in the new annotations streamline - now it gets added to the proper sub-object.

This commit is contained in:
Ken Moore
2016-03-31 08:19:28 -04:00
parent 23a688bd75
commit 341a546c4b

View File

@@ -128,7 +128,7 @@ QJsonObject PKG::pkg_info(QStringList origins, QString repo, QString category, b
//include the annotations as base-level fields as well
//info.insert( anno_from_id(q2.value("tag_id").toString()), anno_from_id(q2.value("value_id").toString()) );
}
if(!tags.isEmpty()){ annotations_from_ids(tags, vals, &retObj); }
if(!tags.isEmpty()){ annotations_from_ids(tags, vals, &info); }
if(!fullresults){ retObj.insert(origin,info); continue; } //skip the rest of the info queries
//OPTIONS
QSqlQuery q3("SELECT value, option FROM pkg_option INNER JOIN option ON pkg_option.option_id = option.option_id WHERE pkg_option.package_id = '"+id+"'");