This commit is contained in:
CHIEFSOFT\ameye
2024-03-27 10:37:18 -04:00
parent 5edd21c70a
commit b1beee0c18
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -77,7 +77,7 @@ long WrenchJobManagerOffers( CVars in, CVars &out){
out["total_record"] = pgsql_num_rows(res);
res = pgsql_query(" SELECT j.id AS job_id,jo.expire,jo.public_view, j.*,jo.uid AS offer_uid,jo.offer_code AS offer_code, j.uid AS job_uid,"
" (CASE WHEN jo.public_view > 0 THEN 'public' ELSE jo.email END) AS job_to, "
" (CASE WHEN jo.public_view > 0 THEN 'public' ELSE jo.email END) AS job_to, j.job_type AS job_type, "
" c.code AS currency_code, c.description AS currency_description,j.country,mf.uid AS family_uid, j.banner AS banner "
" FROM members_jobs_offer jo "
" LEFT JOIN members_jobs j ON j.id = jo.job_id "
@@ -152,6 +152,8 @@ long WrenchJobManagerOffers( CVars in, CVars &out){
snprintf(vname, sizeof (vname), "currency_code_%05d", i);
out[vname] = rec["currency_code"];
snprintf(vname, sizeof (vname), "job_type_%05d", i);
out[vname] = rec["job_type"];
}
}
+1
View File
@@ -715,6 +715,7 @@ class ResultFormatter extends Model
'offer_added' => $out["offer_added_${key}"],
'job_country' => $out["job_country_${key}"],
'currency' => $out["currency_${key}"],
'job_type' => $out["job_type_${key}"],
'currency_code' => $out["currency_code_${key}"],
"banner" => $this->fixEmptyBanner( $out["banner_${key}"]),
'interest_count' => $out["${$int_c}"] ?? 0,