Adapt main_contact_link queries to use main_contact_department
The new tasks and knowledgecenter_update modules were built against a main_contact_link table that does not exist in this system. All 7 active query sites now target main_contact_department (same column names, active_d → active). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -641,15 +641,15 @@ class AssignmentResolverService
|
||||
l.main_mandant_id,
|
||||
l.main_department_id,
|
||||
l.main_role_id,
|
||||
l.active_d
|
||||
l.active
|
||||
FROM main_contact c
|
||||
LEFT JOIN main_contact_link l ON l.main_contact_id = c.id
|
||||
LEFT JOIN main_contact_department l ON l.main_contact_id = c.id
|
||||
WHERE c.active = 1'
|
||||
);
|
||||
|
||||
$scopes = [];
|
||||
foreach ($rows as $row) {
|
||||
if (isset($row['active_d']) && $row['active_d'] !== null && (int) $row['active_d'] !== 1) {
|
||||
if (isset($row['active']) && $row['active'] !== null && (int) $row['active'] !== 1) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user