Bug 124632 - Pivot table: impossible to undo grouped field filtering
Summary: Pivot table: impossible to undo grouped field filtering
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.6.0.4 release
Hardware: All All
: medium normal
Assignee: Bojidar Marinov [:bojidar-bg]
URL:
Whiteboard: target:26.2.0
Keywords:
Depends on:
Blocks: Pivot-Table Undo-Redo
  Show dependency treegraph
 
Reported: 2019-04-09 21:42 UTC by Mike Kaganski
Modified: 2025-12-03 19:08 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2019-04-09 21:42:48 UTC
Open attachment 150630 [details] from bug 124629; filter out some of the grouped fields in the pivot table to have the table empty, as shown in attachment 150631 [details] (but do not change layout to bring data back). Try to undo.

The pivot table data would re-appear; but trying to use filtering (clicking to drop-down buttons in the grouped fields) does not work; and clicking on the first grouped field button removes all data from the table again. Looks like undo does not restore previous filtering state; it just puts old data into cells, but internally, pivot table still knows to filter everything out, and does that as soon as refresh happens.

Reproducible already using version 3.6.
Comment 1 Roman Kuznetsov 2019-04-10 07:41:26 UTC
repro in

Version: 6.3.0.0.alpha0+
Build ID: 7327260de3c0c627e62f7c3fddbe3d71ea88e88f
CPU threads: 4; OS: Windows 6.1; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2019-04-05_06:26:35
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: threaded
Comment 2 QA Administrators 2021-04-10 03:44:36 UTC Comment hidden (obsolete)
Comment 3 itagure 2023-06-05 18:30:57 UTC
The bug is still present in a current Calc version (see below).

Steps used to reproduce:
 - download the attachment mentioned by OP
 - form the "Quarters" drop down, de-select Q1,Q2,Q3,Q4 and click "OK"
 - the pivot will be empty
 - after undo the data is displayed again, but the pivot table is in some kind of "dirty" state so it's not actually usable (it's necessary to remove filters from property and re-add them to make it work again)



Version: 7.5.3.2 (X86_64)
Build ID: 50(Build:2)
CPU threads: 12; OS: Linux 6.3; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 4 Roman Kuznetsov 2025-07-10 18:35:47 UTC
https://gerrit.libreoffice.org/c/core/+/187655
Comment 5 Commit Notification 2025-11-05 03:12:39 UTC
Bojidar Marinov committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/203922ed789bb87f3cca8ea90c81de72e8919c83

tdf#124632: fix undo when applying a filter to the pivot table

It will be available in 26.2.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 6 Buovjaga 2025-12-03 19:08:12 UTC
I guess this could be closed as fixed?