summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/src/widgetgenerator.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/src/widgetgenerator.cc b/server/src/widgetgenerator.cc
index 0240f69..9fdacd2 100644
--- a/server/src/widgetgenerator.cc
+++ b/server/src/widgetgenerator.cc
@@ -74,13 +74,12 @@ static std::string send_macro_widget(Macro &macro,
std::string prefilled;
time_t timestamp = 0;
time_t now = time(NULL);
-
+ /*
if(widget.attributes.find("value") != widget.attributes.end()) {
widget.attributes["value"] = "";
}
-
+ */
result = tabs + "<" + widget.attributes["tagname"];
- std::map< std::string, std::string >::iterator p = widget.attributes.begin();
PRACRO_DEBUG(prefill, "%s: %s\n",
widget.attributes["tagname"].c_str(),
@@ -155,6 +154,7 @@ static std::string send_macro_widget(Macro &macro,
widget.attributes["value"].c_str(),
(int)timestamp);
+ std::map< std::string, std::string >::iterator p = widget.attributes.begin();
while(p != widget.attributes.end()) {
if(p->first != "tagname" && p->first != "map") {
if( ! (p->first == "name" && p->second == "") )
@@ -189,6 +189,7 @@ static void get_fields(Widget &widget, Fieldnames &fields)
if(widget.attributes["name"] != "")
fields.push_back(widget.attributes["name"]);
}
+ // }
std::vector< Widget >::iterator w = widget.widgets.begin();
while(w != widget.widgets.end()) {