summaryrefslogtreecommitdiff
path: root/server/src/widgetgenerator.cc
diff options
context:
space:
mode:
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 43b202f..4061600 100644
--- a/server/src/widgetgenerator.cc
+++ b/server/src/widgetgenerator.cc
@@ -37,7 +37,7 @@ static std::string send_macro_widget(Macro &macro,
std::string prefilled;
time_t timestamp = 0;
- result = tabs + "<" + widget.attributes["type"];
+ result = tabs + "<" + widget.attributes["tagname"];
std::map< std::string, std::string >::iterator p = widget.attributes.begin();
// Check if the field has a map, and fill in the value if it has...
@@ -92,7 +92,7 @@ static std::string send_macro_widget(Macro &macro,
result += send_macro_widget(macro, *w, tabs + " ", mapper, values);
w++;
}
- result += tabs + "</" + widget.attributes["type"] + ">\n";
+ result += tabs + "</" + widget.attributes["tagname"] + ">\n";
return result;
}