Skip to content

Contact view has no tab box, so add-on modules' contacts_tab.view.* tabs never show #561

Closed

Description

@caseysoftware

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.

Found while updating modules-todos for 5.0.

Activity

  1. added a commit that references this issue on Nov 11, 2026
    4cfdc3c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions