summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
authordeva <deva>2010-03-02 10:18:07 +0000
committerdeva <deva>2010-03-02 10:18:07 +0000
commit19f6738283f7d68f8ccb7bc58609582e628f62c4 (patch)
tree5bbb02c5fe4a9889727e2c399eb4a1a89b4986da /server/src
parent4205925d6a89e01b64c6873e5d39f67b47c31d57 (diff)
Set value from db/queries even though it doesn't have a value attribute.
Diffstat (limited to 'server/src')
-rw-r--r--server/src/widgetgenerator.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/widgetgenerator.cc b/server/src/widgetgenerator.cc
index 57be1f2..9647b9b 100644
--- a/server/src/widgetgenerator.cc
+++ b/server/src/widgetgenerator.cc
@@ -178,7 +178,8 @@ static std::string send_macro_widget(Macro &macro,
static void get_fields(Widget &widget, Fieldnames &fields)
{
- if(widget.attributes.find("value") != widget.attributes.end()) {
+ // if(widget.attributes.find("value") != widget.attributes.end()) {
+ if(widget.attributes.find("name") != widget.attributes.end()) {
if(widget.attributes["name"] != "") fields.push_back(widget.attributes["name"]);
}