update jobs
This commit is contained in:
@@ -1241,10 +1241,9 @@ long WrenchEditJobs(CVars in, CVars &out) {
|
||||
job_id = insert_db_record(DBS_VALID, "members_jobs", "members_jobs_id_seq", x);
|
||||
|
||||
if (job_id) {
|
||||
if ( update_db_record(DBS_VALID, "members_jobs", x, job_id) ){
|
||||
update_db_record(DBS_VALID, "members_jobs", x, job_id) );
|
||||
load_db_record(out, "SELECT *,id AS job_id FROM members_jobs WHERE id = %lu ", job_id);
|
||||
ret = PHP_CREATED_OK;
|
||||
}
|
||||
} else {
|
||||
out["status"] = "Unable to create job";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user