add jib group
This commit is contained in:
@@ -1885,6 +1885,7 @@ long WrenchCreateJobsGroup(CVars in, CVars &out) {
|
||||
try {
|
||||
if (load_db_record(out, "SELECT count(id) AS duplicate_name FROM members_job_group WHERE LOWER(group_name)=LOWER('%s') AND member_id =%lu AND status = 1", in["group_name"].c_str(), in["member_id"].Long())) {
|
||||
if (out["duplicate_name"].Long() > 0) {
|
||||
out["error_status_message"] = "Duplicate Name";
|
||||
return PHP_API_BAD_PARAM;
|
||||
} // return no duplicate on any active name
|
||||
} // this action blocks out duplicate
|
||||
@@ -1905,7 +1906,7 @@ long WrenchCreateJobsGroup(CVars in, CVars &out) {
|
||||
//JobAddedMail(x);
|
||||
load_db_record(out, "SELECT *,id AS group_id FROM members_job_group WHERE id = %lu ", group_id);
|
||||
} else {
|
||||
out["status"] = "Uanble to create job group";
|
||||
out["status"] = "Unable to create job group";
|
||||
}
|
||||
|
||||
} catch (bad_parameter) {
|
||||
|
||||
@@ -216,7 +216,8 @@ class WrenchApi extends BaseController
|
||||
// $in["action"] = 0;
|
||||
break;
|
||||
case 'jobgroupadd':
|
||||
$in["action"] = WRENCHBOARD_JOB_JOBGROUPADD;
|
||||
// WRENCHBOARD_JOB_JOBGROUPADD
|
||||
$in["action"] = WRENCHBOARD_JOB_CREATE_GROUP;
|
||||
// $in["action"] = 0;
|
||||
break;
|
||||
case 'homebanners':
|
||||
|
||||
Reference in New Issue
Block a user