Bug 111730 - EDITING Reset Filter works not properly
Summary: EDITING Reset Filter works not properly
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.4.0.3 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-12 15:44 UTC by Stefan_Lange_KA@T-Online.de
Modified: 2019-10-17 06:01 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
zip-File with 2 spreadsheets to reproduce resp. demonstrate the problems (13.67 KB, application/x-zip-compressed)
2017-08-12 15:44 UTC, Stefan_Lange_KA@T-Online.de
Details
zip file with 2 new sheet documents to show the actual probems with reset filter (15.93 KB, application/x-zip-compressed)
2018-08-16 20:46 UTC, Stefan_Lange_KA@T-Online.de
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan_Lange_KA@T-Online.de 2017-08-12 15:44:06 UTC
Created attachment 135490 [details]
zip-File with 2 spreadsheets to reproduce resp. demonstrate the problems

There are several problems at "Reset Filter", when Auto filters are set.

Case 1: Auto filters are located in the first row.

- open the test file "Test Reset Filters V0.ods" from attached zip file
- select one of the not empty cells
- click on any autofilter icon and select any entries, but not "(empt"! [-> why not "(empty)"? / in german version "(leer)" - OK!]
--> Result: displayed are the rows with selected entries, but no emtpy rows
- select any cell so, that Data -> More Filters -> Reset Filter is enabled
- do: Data -> More Filters -> Reset Filter
--> Result: not empty rows are displayed (OK), but empty rows are still not displayed (IMHO a Bug)!

Problem: The Autofilter lists do no longer contain the entries "(empt" and I haven't found any way that they are shown in the lists again (IMHO a Bug) - except "Undo" until they are shown in the lists again.

The empty rows can be shown by select the wole sheet and Format -> Rows -> Show, but after this the empty lines can't be de-selected by any filter.

Reproduced in LO 5.4.0.3 and LO 6.0.0.0.alpha0+. In LO 5.3.5 I couldn't reproduce the problem because there is no way to de-select by filter empty entries. 

Case 2: Auto filters are not located in the first row, but in the second or later.

- open the test file "Test Reset Filters V0_2a.ods" from attached zip file
- select one of the not empty cells
- click on any autofilter icon and select any entries - select or de-select "(empt"
--> Result: displayed are the rows with selected entries, when "(empt" was de-selected, no emtpy rows are displayed
- select any cell so, that Data -> More Filters -> Reset Filter is enabled
- do: Data -> More Filters -> Reset Filter
--> Results:
 - not empty rows are displayed (OK), but when "(empt" was de-selected before, empty rows are still not displayed (IMHO a Bug)!
 - no AutoFilter lists are updated, means the arrows of filters set before are still blue instead black and contents of all lists is in state before "Reset Filter" is done (IMHO a Bug)

Problem: When after this "Undo Filter" is done, all AutoFilters are deactivated (IMHO a Bug).
Comment 1 Stefan_Lange_KA@T-Online.de 2017-08-12 15:45:24 UTC
I forgot - to case 2:
Reproduced in In LO 5.3.5, LO 5.4.0.3 and LO 6.0.0.0.alpha0+.
Comment 2 m_a_riosv 2017-08-12 23:08:05 UTC
When an Autofilter is created without select the data, it selects up to the last not empty row, so when the filter it's created againg after reset, seems fine not having <empty> for select.

On the sample file the data for the 'AutoFilter' covers all sheet rows:
<table:database-ranges>
    <table:database-range table:name="__Anonymous_Sheet_DB__0" table:target-range-address="Tabelle1.A1:Tabelle1.B1048576" table:display-filter-buttons="true" table:orientation="column"/>
   </table:database-ranges>
this is why <empty> it's selectable.

But looks like a bug not showing empty rows after reset the filter.
Comment 3 QA Administrators 2018-08-13 02:38:30 UTC Comment hidden (obsolete)
Comment 4 Stefan_Lange_KA@T-Online.de 2018-08-16 20:46:01 UTC
Created attachment 144244 [details]
zip file with 2 new sheet documents to show the actual probems with reset filter

The behavior of Autofilter and Reset Filter was changed from LO 5.x to LO 6.1 and with my "original" test files I can't reproduce the problems as described.
But there are still problems at Reset Filter when there are completely empty rows within a sheet.

I could close this bug and report a new, but first I describe the actual problems. For demonstration I attach a zip file with 2 sheet documents.

Test case 1:
------------ 
- open "Test Reset Filters V0b2.ods" (Autofilter in the first row, 2 empty rows within the sheet)
- filter out in column B values b4 and b5
- Autofilter lists contain values (empty) + a1..a3 for column A (OK) and (empty) + b1..b3 (checked) + b4..b5 (unchecked) for column B (OK)
- position cursor in one of cells A1..A4 or B1..A4
- Reset Filter
- Result: only rows 1..4 are displayed, Autofiter lists contain only values a1..a3 (column A) and b1..b3 (column B)
Variation 1:
- after filter out cells position cursor in cell A5 or B5 before Reset Filter
- Result of Reset Fiter: Rows 1..6 are dieplayed, Autofilter lists contain values (empty), a1..a4 resp. (empty), b1..b4
Variation 2:
- after filter out cells position cursor in cell B7 before Reset Filter
- Result of Reset Fiter: Rows 1..5 and 7 + 8 are dieplayed (not row 6!), Autofilter lists contain values (empty), a1..a3 for column A resp. (empty) + b1..b3 (checked) + b4 and b5 (unchecked) for column B
Test case 2:
------------
- open "Test Reset Filters V0_2ab.ods" (Autofilter in the second row, 1 empty row within the sheet)
- filter out in column B values b4 and b5
- Autofilter lists contain values (empty) + a1..a3 for column A (OK) and (empty) + b1..b3 (checked) + b4..b5 (unchecked) for column B (OK)
- position cursor in cells A2..A5 or B2..A5
- Reset Filter
- Result: displayed rows and Autofilter lists are not changed
Variation:
- after filter out cells position cursor in cells A2..A5 or B2..A5 and Select all before Reset Filter
- Result of Reset Filter: all rows are displayed, but Autofilter lists are not changed and the Autofilter Array is blue (means cells are filtered)
Comment 5 Stefan_Lange_KA@T-Online.de 2018-08-16 20:48:02 UTC
Supplement to Comment 4:
I have tested with 
Version: 6.1.0.3 (x64)
Build-ID: efb621ed25068d70781dc026f7e9c5187a4decd1
CPU-Threads: 4; BS: Windows 10.0; UI-Render: GL; 
Gebietsschema: de-DE (de_DE); Calc: CL
Comment 6 QA Administrators 2019-08-19 06:56:38 UTC Comment hidden (obsolete)
Comment 7 Stefan_Lange_KA@T-Online.de 2019-10-17 06:00:36 UTC
As written in Comment_4 I will close this bug and check if a new bug must be reported.