You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Contact view has no tab box, so add-on modules' contacts_tab.view.* tabs never show #561
Found on: master @ 418936f (5.0.0-rc3), PHP 8.3.6.
modules/contacts/view.php still reads the tab state ($tab = $AppUI->processIntState('ContactVwTab', $_GET, 'tab', 0);) but never builds a tab box, and style/_common/contacts/view.php ends after the detail columns. The Projects, Companies, Departments, Tasks and Users views all create a CTabBox, whose show() calls loadExtras() to add other modules' <module>_tab.view.<name>.php files.
As a result, an add-on that ships a contacts_tab.view.*.php file is registered in $_SESSION['all_tabs']['contacts'], but nothing on the Contact page shows it. For example, modules-todos ships contacts_tab.view.todolist.php (the todos related to a contact). Its Projects and Companies tabs work on 5.0, but the contact one never appears.
Suggested fix: in modules/contacts/view.php, after the template include, create new CTabBox('?m=contacts&a=view&contact_id=' . $contact_id, '', $tab) and call show() when another module has registered contact tabs (!empty($_SESSION['all_tabs']['contacts'])), so contacts without add-ons don't get an empty tab strip. $tab is already read for this.
Activity
Note the missing Contact tab in the README
Contact view: show tabs that other modules add