summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2010-03-03 11:50:23 +0000
committerdeva <deva>2010-03-03 11:50:23 +0000
commit57768626af7cb825060cdf5aab34919e42b61f93 (patch)
treecaed18c7a5ee6879a08b5999099d8dd7421759b3
parentc74e2b01a93f3c482fb2082df1abbf53e94da4b5 (diff)
Partly revert insert-empty-value fix.
-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()) {