Commit 8da3bb91 authored by twanvl's avatar twanvl

Fixed untagging in statistics panel

parent 80e4ce2c
...@@ -120,7 +120,7 @@ void StatsCategory::find_dimensions(const vector<StatsDimensionP>& available) { ...@@ -120,7 +120,7 @@ void StatsCategory::find_dimensions(const vector<StatsDimensionP>& available) {
} }
} }
if (!dim) { if (!dim) {
handle_error(_ERROR_1_("dimension not found",dim),false); handle_error(_ERROR_1_("dimension not found",n),false);
} else { } else {
dimensions.push_back(dim); dimensions.push_back(dim);
} }
......
...@@ -158,7 +158,7 @@ class StatsFilter : public CardListFilter { ...@@ -158,7 +158,7 @@ class StatsFilter : public CardListFilter {
Context& ctx = set.getContext(card); Context& ctx = set.getContext(card);
FOR_EACH(v, values) { FOR_EACH(v, values) {
StatsDimension& dim = *v.first; StatsDimension& dim = *v.first;
String value = dim.script.invoke(ctx)->toString(); String value = untag(dim.script.invoke(ctx)->toString());
if (dim.split_list) { if (dim.split_list) {
if (!chosen(v.second, value)) return false; if (!chosen(v.second, value)) return false;
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment