print suggestions if present
authorDennis Schafroth <dennis@indexdata.com>
Fri, 28 Oct 2011 13:35:00 +0000 (15:35 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Fri, 28 Oct 2011 13:35:00 +0000 (15:35 +0200)
src/http_command.c

index 963740f..587c908 100644 (file)
@@ -642,6 +642,8 @@ static void cmd_bytarget(struct http_channel *c)
             wrbuf_puts(c->wrbuf, ht[i].settings_xml);
             wrbuf_puts(c->wrbuf, "</settings>\n");
         }
+        if (ht[i].suggestions_xml)
+            wrbuf_puts(c->wrbuf, ht[i].suggestions_xml);
         wrbuf_puts(c->wrbuf, "</target>");
     }
     response_close(c, "bytarget");