more log
This commit is contained in:
@@ -202,11 +202,7 @@ long WrenchSendJobsOfferCreateAssign(CVars in, CVars &out){
|
||||
// REQ_STRING(in, "job_description", 1, 5500, "(.*)");
|
||||
if ( WrenchCreateJobs(in, xx) == PHP_CREATED_OK ){
|
||||
|
||||
CVars xxx, yy;
|
||||
xxx["member_id"] = in["member_id"]; xxx["member_id"].set_valid( true );
|
||||
xxx["title"] = "A job was created"; xxx["title"].set_valid( true );
|
||||
xxx["description"] = "Added a new job"; xxx["description"].set_valid( true );
|
||||
WrenchLogRecent(xxx, yy);
|
||||
|
||||
|
||||
in["job_id"] = xx["job_id"]; xx["job_id"].set_valid( true );
|
||||
in["job_uid"] = xx["job_uid"]; xx["job_uid"].set_valid( true );
|
||||
@@ -1867,6 +1863,13 @@ long WrenchCreateJobs(CVars in, CVars &out) {
|
||||
x["job_id"].set_valid(true);
|
||||
JobAddedMail(x);
|
||||
load_db_record(out, "SELECT *,id AS job_id, uid AS job_uid FROM members_jobs WHERE id = %lu ", job_id);
|
||||
|
||||
CVars xxx, yy;
|
||||
xxx["member_id"] = in["member_id"]; xxx["member_id"].set_valid( true );
|
||||
xxx["title"] = "A job was created"; xxx["title"].set_valid( true );
|
||||
xxx["description"] = "Added a new job"; xxx["description"].set_valid( true );
|
||||
WrenchLogRecent(xxx, yy);
|
||||
|
||||
} else {
|
||||
out["status"] = "Unable to create job";
|
||||
}
|
||||
@@ -1940,6 +1943,13 @@ long WrenchEditJobs(CVars in, CVars &out) {
|
||||
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_UPDATED_OK;
|
||||
|
||||
CVars xxx, yy;
|
||||
xxx["member_id"] = in["member_id"]; xxx["member_id"].set_valid( true );
|
||||
xxx["title"] = "A job was updated"; xxx["title"].set_valid( true );
|
||||
xxx["description"] = "A job was updated"; xxx["description"].set_valid( true );
|
||||
WrenchLogRecent(xxx, yy);
|
||||
|
||||
} else {
|
||||
out["status"] = "Unable to create job";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user