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
Files Add/Edit page still includes the HelpDesk add-on's config.php (dead since 2014) #466
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
Files: stop including the HelpDesk add-on's config.php