fix
This commit is contained in:
@@ -1071,11 +1071,15 @@ long WrenchCreateJobs(CVars in, CVars &out) {
|
||||
REQ_LONG(in, "timeline_days", 1, -1);
|
||||
REQ_STRING(in, "title", 5, 149, "(.*)");
|
||||
REQ_STRING(in, "description", 5, 299, "(.*)");
|
||||
//REQ_STRING (in, "job_detail", 4, 40, "(.*)");
|
||||
REQ_STRING (in, "job_detail", 4, 1440, "(.*)");
|
||||
const char * loc = getenv("REMOTE_ADDR");
|
||||
in["loc"] = loc;
|
||||
in["loc"].set_valid(true);
|
||||
|
||||
if (in["price"].Long()<=0){
|
||||
out["status"] = "Unable to create job, price cannot be zero";
|
||||
return ret;
|
||||
}
|
||||
|
||||
CVars x;
|
||||
x["member_id"] = in["member_id"];
|
||||
@@ -1105,7 +1109,7 @@ long WrenchCreateJobs(CVars in, CVars &out) {
|
||||
JobAddedMail(x);
|
||||
load_db_record(out, "SELECT *,id AS job_id FROM members_jobs WHERE id = %lu ", job_id);
|
||||
} else {
|
||||
out["status"] = "Uanble to create job";
|
||||
out["status"] = "Unable to create job";
|
||||
}
|
||||
|
||||
logfmt(logINFO, "/WrenchCreateJobs()");
|
||||
|
||||
Reference in New Issue
Block a user