summaryrefslogtreecommitdiff
path: root/server/src/widgetgenerator.cc
diff options
context:
space:
mode:
authordeva <deva>2008-08-21 09:49:37 +0000
committerdeva <deva>2008-08-21 09:49:37 +0000
commitd3ea5701baadcdbc6df8775d88f173e52936307a (patch)
tree3e0000345e815e4db63a87b82e923a58db165357 /server/src/widgetgenerator.cc
parente7a9fa4dfb4a3cc4ec403994437af3529615aab8 (diff)
Fixed hardcoded CPR in widgetgenerator - yrk.
Diffstat (limited to 'server/src/widgetgenerator.cc')
-rw-r--r--server/src/widgetgenerator.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/widgetgenerator.cc b/server/src/widgetgenerator.cc
index ad9ffc6..26dcf37 100644
--- a/server/src/widgetgenerator.cc
+++ b/server/src/widgetgenerator.cc
@@ -116,12 +116,12 @@ static void get_fields(Widget &widget, Fieldnames &fields)
}
}
-std::string widgetgenerator(Macro &macro, LUAQueryMapper &mapper, Database &db)
+std::string widgetgenerator(std::string cpr, Macro &macro, LUAQueryMapper &mapper, Database &db)
{
Fieldnames fields;
get_fields(macro.window, fields);
- Values values = db.getValues("2003791613", fields);
+ Values values = db.getValues(cpr, fields);
return send_macro_widget(macro, macro.window, " ", mapper, values);
}