From 19f6738283f7d68f8ccb7bc58609582e628f62c4 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 2 Mar 2010 10:18:07 +0000 Subject: Set value from db/queries even though it doesn't have a value attribute. --- server/src/widgetgenerator.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/src') 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 ¯o, 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"]); } -- cgit v1.2.3