summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"]);
}