From 57768626af7cb825060cdf5aab34919e42b61f93 Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 3 Mar 2010 11:50:23 +0000 Subject: Partly revert insert-empty-value fix. --- server/src/widgetgenerator.cc | 7 ++++--- 1 file 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 ¯o, 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 ¯o, 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()) { -- cgit v1.2.3