Skip to content

Files Add/Edit page still includes the HelpDesk add-on's config.php (dead since 2014) #466

Closed

Description

@caseysoftware

modules/files/addedit.php still carries HelpDesk integration code that has done nothing since 6292590 (2014, "removed the helpdesk functionality as $helpdesk_available never evaluates to true"):

  • L37–39: include W2P_BASE_DIR . '/modules/helpdesk/config.php' when the add-on is installed. This runs the add-on's config file on every Add/Edit File page.
  • L91–93: reads $object->file_helpdesk_item. CFile has no such property (see the comment in files.class.php L34), so it is never set.

Including another module's config file from a core page is also a risk. The HelpDesk configure page writes unescaped values into that file (filed on web2project/modules-helpdesk), so code in it would now run on a Files page too.

Suggested fix: delete both blocks. If ticket ↔ file links are wanted later, the add-on can provide them through a tab or a hook. Nothing else in core reads file_helpdesk_item.

Activity

  1. added a commit that references this issue on Oct 24, 2026
    67a71cf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions