banner add

This commit is contained in:
CHIEFSOFT\ameye
2023-07-04 19:44:42 -04:00
parent cf21097eec
commit e6743f441d
3 changed files with 17 additions and 2 deletions
@@ -120,6 +120,8 @@ long WrenchSuggestWaitingList(CVars in, CVars &out){ // this is the parent now
snprintf(vname, sizeof (vname), "status_%05d", i);
out[vname] = rec["status"];
snprintf(vname, sizeof (vname), "banner_%05d", i);
out[vname] = rec["banner"];
}
}
ret = PHP_API_OK;
@@ -174,6 +176,9 @@ long WrenchSuggestList(CVars in, CVars &out){
snprintf(vname, sizeof (vname), "status_%05d", i);
out[vname] = rec["status"];
snprintf(vname, sizeof (vname), "banner_%05d", i);
out[vname] = rec["banner"];
}
}
ret = PHP_API_OK;
@@ -218,6 +223,10 @@ long WrenchSuggestTasks(CVars in, CVars &out){
xx["description"].set_valid(true);
xx["family_uid"] = rec["family_uid"];
xx["family_uid"].set_valid(true);
xx["banner"] = rec["banner"];
xx["banner"].set_valid(true);
out["suggested_task_id"] = insert_db_record(DBS_VALID, "members_family_suggesttask", "members_family_suggesttask_id_seq", xx);
ret = PHP_API_OK;
out["status"] = "OK";