mark family jobs
This commit is contained in:
@@ -224,13 +224,14 @@ long WrenchSendJobsOfferCreateAssign(CVars in, CVars &out){
|
||||
REQ_STRING(in, "family_uid", 1, 59, "(.*)");
|
||||
// REQ_STRING(in, "job_description", 1, 5500, "(.*)");
|
||||
if ( WrenchCreateJobs(in, xx) == PHP_CREATED_OK ){
|
||||
|
||||
|
||||
|
||||
in["job_id"] = xx["job_id"]; xx["job_id"].set_valid( true );
|
||||
in["job_uid"] = xx["job_uid"]; xx["job_uid"].set_valid( true );
|
||||
in["job_description"] = xx["job_detail"]; xx["job_description"].set_valid( true );
|
||||
ret = WrenchSendJobsOfferFamily(in, out);
|
||||
|
||||
// UPDATE THE JOB TO FAMILY MODE - This is a family job
|
||||
pgsql_exec("UPDATE members_jobs SET job_mode = 'FAMILY' WHERE id = %lu AND uid = '%s' ",in["job_id"].Long(), in["job_uid"].c_str());
|
||||
|
||||
ret = WrenchSendJobsOfferFamily(in, out);
|
||||
}
|
||||
} catch (bad_parameter) {
|
||||
out["log_status"] = "error...";
|
||||
|
||||
Reference in New Issue
Block a user