# Known Bugs - New Recruiter

## Low Priority

### 1. Employment Type Shows Wrong Data
**Status:** Not Fixed (Low Priority)
**Discovered:** 15 Feb 2026

**Issue:**
The `employment_type` field incorrectly uses `job_enrollment_type` table instead of `job_type_master` table.

| Table | Contains | Should Be Used For |
|-------|----------|-------------------|
| `job_enrollment_type` | Walk-in, Online Apply | How to apply (currently used - WRONG) |
| `job_type_master` | Full Time, Part Time, Internship | Employment type (should be used) |

**Affected Files:**
| File | Line | Impact |
|------|------|--------|
| `app/helpers/db_mapping.php` | 52 | Root cause - wrong table reference |
| `app/views/dashboard.php` | 700 | Shows "Walk-in/Online Apply" instead of "Full Time" |
| `app/views/dashboard2.php` | 806 | Same issue |
| `app/views/view_job.php` | 371 | Shows wrong employment type |
| `app/views/post_job_to_boards.php` | 121 | Wrong job type displayed |
| `app/Services/BoardIntegrations/ManualIntegration.php` | 31, 316, 325, 326, 360 | Would send wrong type to LinkedIn, Indeed |
| `app/Services/BoardIntegrations/GoogleJobsIntegration.php` | 22 | Would send wrong type to Google Jobs |

**Fix Required:**
1. Update `ProductionDBAdapter.php` - Add JOIN to `company_jobs_types` → `job_type_master`
2. Use `GROUP_CONCAT` since a job can have multiple types (e.g., "Full Time, Part Time")
3. Update `db_mapping.php` - Change `getJobTypeName()` to use correct table

**Org-Recruiter Reference:**
```sql
-- From org-recruiter/application/controllers/superadmin/Company.php
LEFT JOIN company_jobs_types cjt ON cjt.company_job_id = cj.id AND cjt.status = 1
LEFT JOIN job_type_master jtm ON jtm.id = cjt.job_type_master_id
-- Then GROUP_CONCAT(DISTINCT jtm.name SEPARATOR ', ') AS job_types
```

**Why Low Priority:**
- Main recruiter views (jobs.php, job_detail.php) don't display employment type
- Job board integrations are not actively used
- Dashboard views show it but it's not a critical field

---

## Fixed Bugs

*(Move bugs here after fixing)*

---

## Notes

- Always check `org-recruiter/` for reference implementation before fixing
- Test on local Docker environment before deploying to production
