banner bug
This commit is contained in:
@@ -201,6 +201,8 @@ long WrenchSuggestTasks(CVars in, CVars &out){
|
||||
REQ_STRING(in, "uid", 3, 150, "(.*)");
|
||||
REQ_STRING(in, "title", 3, 150, "(.*)");
|
||||
REQ_STRING(in, "description", 3, 299, "(.*)");
|
||||
REQ_STRING(in, "banner", 3, 25, "(.*)");
|
||||
|
||||
out["suggested_task_id"] ="0";// we will set if all okay
|
||||
const PGresult *res = pgsql_query("SELECT m.*,mf.uid AS family_uid FROM members m "
|
||||
" LEFT JOIN members_family mf ON mf.family_member_id = m.id "
|
||||
@@ -224,7 +226,7 @@ long WrenchSuggestTasks(CVars in, CVars &out){
|
||||
xx["family_uid"] = rec["family_uid"];
|
||||
xx["family_uid"].set_valid(true);
|
||||
|
||||
xx["banner"] = rec["banner"];
|
||||
xx["banner"] = in["banner"];
|
||||
xx["banner"].set_valid(true);
|
||||
|
||||
out["suggested_task_id"] = insert_db_record(DBS_VALID, "members_family_suggesttask", "members_family_suggesttask_id_seq", xx);
|
||||
|
||||
Reference in New Issue
Block a user