Bug 124632 - Pivot table: impossible to undo grouped field filtering
Summary: Pivot table: impossible to undo grouped field filtering
Status: NEW
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: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Pivot-Table Undo-Redo
  Show dependency treegraph
 
Reported: 2019-04-09 21:42 UTC by Mike Kaganski
Modified: 2023-06-05 18:30 UTC (History)
3 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