From 488e60f1e3f02d3ee41a21112010b5614d6082d2 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 7 Jul 2023 12:28:08 -0400 Subject: [PATCH] job_id --- wrenchboard/src/shared_tool/jobs.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wrenchboard/src/shared_tool/jobs.cc b/wrenchboard/src/shared_tool/jobs.cc index ed7994c2..3edfdff5 100644 --- a/wrenchboard/src/shared_tool/jobs.cc +++ b/wrenchboard/src/shared_tool/jobs.cc @@ -196,11 +196,12 @@ long WrenchSendJobsOfferCreateAssign(CVars in, CVars &out){ try { CVars xx; long member_id = REQ_LONG(in, "member_id", 1, -1); - REQ_LONG(in, "job_id", 1, -1); + // REQ_LONG(in, "job_id", 1, -1); // REQ_STRING(in, "job_uid", 1, 59, "(.*)"); 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);