Skip to content

Conversation

@Hipska
Copy link
Contributor

@Hipska Hipska commented Oct 7, 2025

Base information

Question Answer
Related to a SourceForge thead / Another PR / Combodo ticket? N/A
Type of change? Enhancement

Objective

Exporting a LinkedSet attribute with spreadsheet HTML just returns the list of IDs of the linked objects, which is not very helpful for further processing.

Proposed solution

  • Export the friendly names for the linked objects when localised, IDs otherwise.
  • Add option to display the attribute as CSV in templates.

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have tested all changes I made on an iTop instance
  • I have added a unit test, otherwise I have explained why I couldn't
  • Is the PR clear and detailed enough so anyone can understand digging in the code?

@github-project-automation github-project-automation bot moved this to First review needed in Combodo PRs dashboard Oct 7, 2025
@jf-cbd jf-cbd moved this from First review needed to Hacktoberfest in Combodo PRs dashboard Oct 7, 2025
@jf-cbd jf-cbd moved this from Hacktoberfest to Pending technical review in Combodo PRs dashboard Nov 3, 2025
@jf-cbd jf-cbd moved this from Pending technical review to Pending functional review in Combodo PRs dashboard Nov 6, 2025
@jf-cbd jf-cbd changed the title feat(AttributeLinkedSet): Allow for export in Spreadsheet HTML format N°8921 - feat(AttributeLinkedSet): Allow for export in Spreadsheet HTML format Nov 17, 2025
@jf-cbd
Copy link
Member

jf-cbd commented Nov 28, 2025

Hey @Hipska, thank you for your PR. It seems nice, but why IDs are exported when the object isn't localised ? Shouldn't it be only when there is no friendly name ?
Except this small details, it has been accepted in functional review :)

@jf-cbd jf-cbd moved this from Pending functional review to Pending technical review in Combodo PRs dashboard Nov 28, 2025
@Hipska
Copy link
Contributor Author

Hipska commented Dec 2, 2025

This was to keep backward compatibility. If somebody relied on having the IDs, then they should still be there when using no localisation.

# Conflicts:
#	core/spreadsheetbulkexport.class.inc.php
#	sources/Core/AttributeDefinition/AttributeLinkedSet.php
@Hipska Hipska force-pushed the feat/attributelinkedset/csv_export branch from 5be624d to cf30917 Compare December 2, 2025 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Pending technical review

Development

Successfully merging this pull request may close these issues.

2 participants