Stop leaking the shared placeholder facility's phone onto unrelated shifts/jobs
Shift/Job 426-style pages showed 09910540686 — the «نامشخص / ثبت نشده» placeholder facility's phone, set once and shown on every unnamed-facility listing (and in the contact modal), even though it isn't that ad's number. Now the facility phone/Bale is only used as a fallback when the facility is a REAL named employer (SeoJsonLd.HasRealEmployer); otherwise fall back to the Divar source link (if any) or «شماره ثبت نشده». Fixed in the /contact modal endpoint and both detail-page inline reveals. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
@* Numbers from THIS ad (aggregated) — the correct, per-listing contacts. *@
|
||||
<partial name="_ContactList" model="jobContacts" />
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(f.Phone) || !string.IsNullOrEmpty(f.BaleId))
|
||||
else if (JobsMedical.Web.Services.SeoJsonLd.HasRealEmployer(f) && (!string.IsNullOrEmpty(f.Phone) || !string.IsNullOrEmpty(f.BaleId)))
|
||||
{
|
||||
@if (!string.IsNullOrEmpty(f.Phone))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user