diff options
| author | deva <deva> | 2010-03-02 10:18:07 +0000 | 
|---|---|---|
| committer | deva <deva> | 2010-03-02 10:18:07 +0000 | 
| commit | 19f6738283f7d68f8ccb7bc58609582e628f62c4 (patch) | |
| tree | 5bbb02c5fe4a9889727e2c399eb4a1a89b4986da | |
| parent | 4205925d6a89e01b64c6873e5d39f67b47c31d57 (diff) | |
Set value from db/queries even though it doesn't have a value attribute.
| -rw-r--r-- | server/src/widgetgenerator.cc | 3 | 
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 ¯o,  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"]);    } | 
