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:
@@ -1670,9 +1670,9 @@ function search_posts()
|
||||
$userRoles = [];
|
||||
|
||||
if ($currentUserId) {
|
||||
$query = "SELECT main_mandant_id, main_department_id, main_role_id
|
||||
FROM main_contact_link
|
||||
WHERE main_contact_id = $currentUserId AND active_d = 1";
|
||||
$query = "SELECT main_mandant_id, main_department_id, main_role_id
|
||||
FROM main_contact_department
|
||||
WHERE main_contact_id = $currentUserId AND active = 1";
|
||||
$result = mysqli_query($GLOBALS['mysql_con'], $query);
|
||||
while ($row = mysqli_fetch_assoc($result)) {
|
||||
// Filtere 0 aus – 0 gilt als "keine Zuordnung"
|
||||
|
||||
Reference in New Issue
Block a user