Bug 105980 - Filter lost the Regular expression after saving
Summary: Filter lost the Regular expression after saving
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.4.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: AutoFilter
  Show dependency treegraph
 
Reported: 2017-02-13 14:14 UTC by Juergen Funk (CIB)
Modified: 2025-04-12 03:11 UTC (History)
2 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 Juergen Funk (CIB) 2017-02-13 14:14:44 UTC
The Filter with Regular expression (RegExp): Only save independencies of = (match) and <> (!match), but in the GUI you can set with other Condition and works, but when save, it ignore the RegExp and lost this information. The RegExp make only sense in dependencies of =, <>. This should be handle in the GUI and than the user can see whats going on.

You can reproduce this with follwing steps:
-------------------------------------------
 1. Insert follwing in
    A1 = "Test" 
    A2 = "abc"
    A3 = "bcd"
    A4 = "cde"
 2. Go to 'Data -> More Filters -> Standartd Filter'
    Open 'Options'
      set 'Range contains column lables'
      set 'Regular expression'
      in first row set 'Field name' to "Test"
      set              'Condition'  to "Begins with"
      set              'Value'      to "a|b"
      press            'OK'
 3. the result must be 
      "abc"
      "bcd"
 4. Save file and close calc
 5. Open the file
 6. Go to Filter see 2. and in 'Options' the RegExp is not set
Comment 1 Juergen Funk (CIB) 2017-02-13 15:05:51 UTC
It exist four solution for that problem:

1. We save the RegExp too
    Problem: Need a other format for ODF and the compatibility for older 
             vesion is very hard.

2. We remove the RegExp chackbox and insert this in the condition LisBox
    Problem: At the moment the RegExp is global for all, in this case same
             problem as solution 1 we must change the ODF format ...

3. When the RegExp ist checked, in the Condition-ListBox only can choose = <>
    Problem: When the first entry is set with other as = <> and in the second 
             you set the RegExp what to do with the first one

4. In Condition-ListBox you choose other = <> then the RegExp would be inactive
    Problem: You set the first one with = or <> but in the second you use
             other, what to do with the first one.

The best solution is a mix from 3. and 4.
Comment 2 Juergen Funk (CIB) 2017-02-27 06:39:32 UTC
Here the patch: https://gerrit.libreoffice.org/#/c/34566/ wait of review
Comment 3 Xisco Faulí 2017-10-12 08:04:22 UTC
Dear Juergen Funk (CIB),
This bug has been in ASSIGNED status for more than 3 months without any activity. Resetting it to NEW.
Please assigned it back to yourself if you're still working on this.
Comment 4 QA Administrators 2018-10-13 03:14:04 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2020-10-13 04:46:55 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2022-10-14 03:32:45 UTC Comment hidden (obsolete)
Comment 7 ady 2023-04-12 07:34:51 UTC
Still present.
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 375f85f8518f49ce4381b6663f1e94fc02bacf93
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-US (es_AR); UI: en-US
Calc: CL threaded
Comment 8 QA Administrators 2025-04-12 03:11:52 UTC
Dear Juergen Funk (CIB),

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug