Bug 129283 - Cells with conditional formatting are treat as protected cells
Summary: Cells with conditional formatting are treat as protected cells
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.3.3 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-08 21:14 UTC by Euler German
Modified: 2019-12-10 15:34 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Conditional format bug sample (27.31 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-12-08 21:17 UTC, Euler German
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Euler German 2019-12-08 21:14:43 UTC
Description:
If a cell range has a conditional format and an entry on it triggers the conditional format it immediately becomes "protected" so one can't edit its value if wrong. Any attempt returns the warning "Protect cells can not be modified."
I'm attaching a three column sample. Columns A and B have conditional formating indicating the maximum and minimum value of the column range. These columns ARE NOT write protected. The C column has a simple formula calculating the difference of A minus B. This column IS write protected.
As far as I know this problem appears on LibreOffice versions 6.2.2 to 6.3.3.

Actual Results:
Introduce values on columns A and B

Expected Results:
The difference A - B will show on C


Reproducible: Always


User Profile Reset: No



Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: SpreadsheetDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: yes
Comment 1 Euler German 2019-12-08 21:17:03 UTC
Created attachment 156418 [details]
Conditional format bug sample
Comment 2 Oliver Brinzing 2019-12-09 17:47:35 UTC
I can not find a mistake:

cell A2 (value: 30) uses cell style "BlueBack"
"BlueBack" has cell protection enabled
-> if sheeet is protected, A2 is not editable.

cell A19 (value: 20) uses cell style "RedBack"
"RedBack" has no cell protection
-> A19 is always editable

Can you please check?
Comment 3 Euler German 2019-12-09 20:16:56 UTC
(In reply to Oliver Brinzing from comment #2)
> I can not find a mistake:
> 
> cell A2 (value: 30) uses cell style "BlueBack"
> "BlueBack" has cell protection enabled
> -> if sheeet is protected, A2 is not editable.
> 
> cell A19 (value: 20) uses cell style "RedBack"
> "RedBack" has no cell protection
> -> A19 is always editable
> 
> Can you please check?

 Thanks for your reply, Oliver.
 This "cell protection enabled" was my first concern. I did check both styles properties (F11) before reporting but couldn't find any reference to cell protection there. Am I missing something?
 Both styles (RedBack and BlueBack) were equally made except by the different background color.
 Sorry for the bogus alert.
Comment 4 Euler German 2019-12-09 20:33:55 UTC
(In reply to Euler German from comment #3)
> (In reply to Oliver Brinzing from comment #2)
> > I can not find a mistake:
> > 
> > cell A2 (value: 30) uses cell style "BlueBack"
> > "BlueBack" has cell protection enabled
> > -> if sheeet is protected, A2 is not editable.
> 
>  Thanks for your reply, Oliver.
>  This "cell protection enabled" was my first concern. I did check both
> styles properties (F11) before reporting but couldn't find any reference to
> cell protection there. Am I missing something?

Never mind, I just found the way to reset the "protect cell" to "un-protect". When using "F11 > Properties" and clicking "More options" button, the Cell Protection tab always shows style as Un-protect. OTOH right-clicking the style in the styles' list, and picking Modify from the menu opened the right dialog.
Comment 5 QA Administrators 2019-12-10 04:10:39 UTC Comment hidden (obsolete)
Comment 6 Oliver Brinzing 2019-12-10 15:34:47 UTC
> OTOH right-clicking the style in the styles' list, and picking Modify
> from the menu opened the right dialog

yes, you need to change the cell style to "unprotect" to make it work