job_detail
This commit is contained in:
@@ -2558,14 +2558,17 @@ long LoginWrenchPromoAccount( CVars in, CVars &out ){
|
||||
|
||||
if ( load_db_record(p, "SELECT * FROM market_promo WHERE promo::text ='%s' ", in["promo"].c_str())> 0){
|
||||
|
||||
if ( load_db_record(inj, "SELECT j.member_id, j.uid AS job_uid, j.id AS job_id, j.title,j.description,j.country, m.uid FROM members_jobs j LEFT JOIN members m ON m.id = j.member_id WHERE j.uid::text ='%s'",p["first_job"].c_str())> 0){
|
||||
if ( load_db_record(inj, "SELECT j.member_id, j.uid AS job_uid, j.id AS job_id, j.title,j.description,j.country, m.uid,j.job_detail "
|
||||
" FROM members_jobs j LEFT JOIN members m ON m.id = j.member_id WHERE j.uid::text ='%s'",p["first_job"].c_str())> 0){
|
||||
// LEt us assign first task
|
||||
// inj["member_id"] = "0"; inj["member_id"].set_valid( true );
|
||||
// inj["uid"] = "0"; inj["uid"].set_valid( true );
|
||||
// inj["job_id"] = "0"; inj["member_id"].set_valid( true );
|
||||
//inj["job_uid"] = "0"; inj["member_id"].set_valid( true );
|
||||
|
||||
inj["strict_timeline"] = "10"; inj["strict_timeline"].set_valid( true );
|
||||
inj["email"] = inx["username"] ; inj["email"].set_valid( true ); // email
|
||||
inj["job_description"] = "0"; inj["job_description"].set_valid( true );
|
||||
inj["job_description"] = inj["job_detail"]; inj["job_description"].set_valid( true );
|
||||
inj["action"] = WRENCHBOARD_JOB_OFFER_SYSTEM; inj["action"].set_valid( true );
|
||||
inj["assign_mode"] = ASSIGN_MODE_EMAIL; inj["assign_mode"].set_valid( true );
|
||||
out["assign_id"] = WrenchJobOfferSystems(inj, outX);
|
||||
|
||||
@@ -1705,6 +1705,9 @@ long WrenchSendJobsOfferIndividual(CVars in, CVars &out) {
|
||||
x["offer_code"] = in["offer_code"];
|
||||
x["offer_code"].set_valid(true);
|
||||
|
||||
x["strict_timeline"] = in["strict_timeline"];
|
||||
x["strict_timeline"].set_valid(true);
|
||||
|
||||
const char * loc = getenv("REMOTE_ADDR");
|
||||
x["loc"] = loc;
|
||||
x["loc"].set_valid(true);
|
||||
|
||||
Reference in New Issue
Block a user