hoogi91 / charts

TYPO3 Extension charts
https://extensions.typo3.org/extension/charts/
GNU General Public License v3.0
5 stars 6 forks source link

Problem with own customized data (or own file reference) within localization of tx_charts_domain_model_chartdata #548

Open ikonplant opened 2 months ago

ikonplant commented 2 months ago

Version(s) affected: 2.0.6


Description

Translated Chart Dataset data (tx_charts_domain_model_chartdata) refers the spreadsheet configuration of the origin data record (from sys_language_uid 0). Changes, made for translated record via BE, are not stored in the database correctly and are not shown in BE correctly.


How to reproduce

  1. Upload Excel sheet to file storage
  2. Create Chart Dataset, language 0
  3. Make selection for spreadsheet_labels, spreadsheet_datasets, spreadsheet_datasets_labels in BE
  4. Save
  5. Translate chart dataset to language 1
  6. Make (same or different) selection for spreadsheet_labels, spreadsheet_datasets, spreadsheet_datasets_labels in BE
  7. Save

Given / created Data:

Further use case to recheck the problem in frontend:

Add second Excel sheet with the same data, but translated labels to the file storage Set relation within translated Chart Dataset to the second Excel sheet


Additional context

hoogi91 commented 2 months ago

Hey @ikonplant,

thanks for the detailed report. Indeed it looks like there is a missing data handler that selects the correct spreadsheet right after translating an entry. I played already a bit around and I'm confident to find a good solution for it. I guess it will require a bugfix in https://github.com/hoogi91/spreadsheets too, but then this issue should disappear. Hope to create a release on the weekend :)

hoogi91 commented 2 months ago

Hey @ikonplant,

this issue should be solved with either spreadsheets version 3.3.2 or 4.0.2.

Can you test this and write me some feedback? Thanks

ikonplant commented 2 months ago

Hi @hoogi91 ! Thank you! I will have a look at it tomorrow and give you my feedback.

ikonplant commented 2 months ago

Hi @hoogi91 ! Unfortunately the problem is not solved for our customer. I will come back to you with detailed report.