Bug 143068 - FILESAVE XLSX Standard filter condition of Top10 lost
Summary: FILESAVE XLSX Standard filter condition of Top10 lost
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Tünde Tóth
URL:
Whiteboard: target:7.3.0 target:7.2.0.2
Keywords: filter:xlsx
Depends on:
Blocks: XLSX-Autofilter
  Show dependency treegraph
 
Reported: 2021-06-25 12:00 UTC by NISZ LibreOffice Team
Modified: 2021-08-09 12:00 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Excel with Top10 type condition (10.39 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2021-06-25 12:00 UTC, NISZ LibreOffice Team
Details
Example file from Excel with Bottom 10 type condition (10.38 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2021-06-25 12:00 UTC, NISZ LibreOffice Team
Details
Example file with Top10 type condition saved by Calc (7.36 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2021-06-25 12:01 UTC, NISZ LibreOffice Team
Details
Example file with Bottom 10 type condition saved by Calc (7.35 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2021-06-25 12:01 UTC, NISZ LibreOffice Team
Details
Screenshot of the original document with Top10 condition side by side in Excel and Calc (105.98 KB, image/png)
2021-06-25 12:01 UTC, NISZ LibreOffice Team
Details
Screenshot of the exported document with Top10 condition side by side in Excel and Calc (97.93 KB, image/png)
2021-06-25 12:02 UTC, NISZ LibreOffice Team
Details
Screenshot of the original document with Bottom 10 condition side by side in Excel and Calc (105.06 KB, image/png)
2021-06-25 12:03 UTC, NISZ LibreOffice Team
Details
Screenshot of the exported document with Bottom 10 condition side by side in Excel and Calc (94.96 KB, image/png)
2021-06-25 12:03 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2021-06-25 12:00:29 UTC
Created attachment 173198 [details]
Example file from Excel with Top10 type condition

Attached example files were made in Excel and contain a Top10 standard filter condition on the times in column D.
These are imported correctly in Calc, but are lost on save to XLSX.

Steps to reproduce:
    1. Open attached file in Calc
    2. Open the autofilter, select Standard Filter, notice there is Largest or Smallest condition set.
    3. Save as XLSX, reopen in Calc or Excel, Open the autofilter, select Standard Filter,

Actual results:
The Standard Filter dialog does not show the Largest or Smallest condition.

Expected results:
The Standard Filter dialog should show the Largest or Smallest condition.

LibreOffice details:
Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 6805efdecb240fad8c82a5c1756a2a0e92f12b7d
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL
Comment 1 NISZ LibreOffice Team 2021-06-25 12:00:49 UTC
Created attachment 173199 [details]
Example file from Excel with Bottom 10 type condition
Comment 2 NISZ LibreOffice Team 2021-06-25 12:01:12 UTC
Created attachment 173200 [details]
Example file with Top10 type condition saved by Calc
Comment 3 NISZ LibreOffice Team 2021-06-25 12:01:32 UTC
Created attachment 173201 [details]
Example file with Bottom 10 type condition saved by Calc
Comment 4 NISZ LibreOffice Team 2021-06-25 12:01:51 UTC
Created attachment 173202 [details]
Screenshot of the original document with Top10 condition side by side in Excel and Calc
Comment 5 NISZ LibreOffice Team 2021-06-25 12:02:32 UTC
Created attachment 173203 [details]
Screenshot of the exported document with Top10 condition side by side in Excel and Calc
Comment 6 NISZ LibreOffice Team 2021-06-25 12:03:32 UTC
Created attachment 173204 [details]
Screenshot of the original document with Bottom 10 condition side by side in Excel and Calc
Comment 7 NISZ LibreOffice Team 2021-06-25 12:03:50 UTC
Created attachment 173205 [details]
Screenshot of the exported document with Bottom 10 condition side by side in Excel and Calc
Comment 8 m_a_riosv 2021-06-25 13:42:33 UTC
Repro
Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 6805efdecb240fad8c82a5c1756a2a0e92f12b7d
CPU threads: 4; OS: Windows 10.0 Build 21390; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: threaded
Comment 9 Commit Notification 2021-07-13 16:24:38 UTC
Tünde Tóth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/d79de2a2975db6b34f47b7ccfe8d18692373d6f0

tdf#143068 XLSX: fix export of top10 filter condition

It will be available in 7.3.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 10 Commit Notification 2021-07-15 08:48:37 UTC
Tünde Tóth committed a patch related to this issue.
It has been pushed to "libreoffice-7-2":

https://git.libreoffice.org/core/commit/b17df21168796c0b6907200f8600b065d7e602ad

tdf#143068 XLSX: fix export of top10 filter condition

It will be available in 7.2.0.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 11 NISZ LibreOffice Team 2021-08-09 12:00:59 UTC
Verified in:
Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: d1f1f546b212ecd651146addeb328806bb270d5f
CPU threads: 4; OS: Windows 10.0 Build 17134; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: threaded