Ensure both type and enabled are returned when requesting domains through the API
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
7281da34b4
commit
7f0bd7481e
|
@ -503,7 +503,7 @@ int api_list(struct ftl_conn *api)
|
|||
return send_json_error(api, 400,
|
||||
"uri_error",
|
||||
"Invalid request: Specify list to modify more precisely",
|
||||
NULL);
|
||||
api->request->local_uri_raw);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -2074,7 +2074,7 @@ bool gravityDB_readTable(const enum gravity_list_type listtype,
|
|||
filter = " AND domain LIKE :item";
|
||||
}
|
||||
|
||||
snprintf(querystr, buflen, "SELECT id,domain,date_added,date_modified,comment,"
|
||||
snprintf(querystr, buflen, "SELECT id,domain,type,enabled,date_added,date_modified,comment,"
|
||||
"(SELECT GROUP_CONCAT(group_id) FROM domainlist_by_group g WHERE g.domainlist_id = d.id) AS group_ids "
|
||||
"FROM domainlist d WHERE d.type IN (%s)%s;", type, filter);
|
||||
|
||||
|
|
Loading…
Reference in New Issue