Skip to content

Conversation

trasher
Copy link
Contributor

@trasher trasher commented Sep 23, 2025

Since we switched to phpspreadsheet; the way to generate PDF and CSV no longer uses internal show* methods.
But those ones have been kept, empty. This cause code that will never work to just output nothgin, without any error.

This PR remove those inherited methods; clean them where not needed, and ensure we do not try to use them outside of HTML output.
Since finally the ExportSearchOutput::displayData() was only used once in NamesListSearchOutput, I moved it and clean all call to empty show* methods.

I've removed the usage of generic Search::show* (those ones should certainly be deprecated - to be discussed) because most of the time it was used with an explicit HTML output, or indirectly in a HTML only display context.

Probably to be reviewed per commit.

@trasher trasher marked this pull request as ready for review September 30, 2025 06:27
@cedric-anne cedric-anne added this to the 11.0.0 milestone Sep 30, 2025
Copy link
Member

@cedric-anne cedric-anne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are failing.

cedric-anne
cedric-anne previously approved these changes Sep 30, 2025
@trasher trasher requested a review from cedric-anne October 1, 2025 04:33
@cedric-anne cedric-anne merged commit 0bcef87 into glpi-project:11.0/bugfixes Oct 1, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants