| Summary: | Data validity bugs in custom formulas and drop-down lists. | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Konstantin <binom3.14> |
| Component: | Calc | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | UNCONFIRMED --- | ||
| Severity: | normal | CC: | ilmari.lauhakangas |
| Priority: | medium | Keywords: | needsDevAdvice |
| Version: | 7.5.2.2 release | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
| Attachments: | file with errors | ||
|
Description
Konstantin
2023-04-02 11:20:17 UTC
Created attachment 186407 [details]
file with errors
We take one issue per report, so let's focus on the first one for this report. I tried editing A3 to have cat6, but got an error dialog: Названия уже созданных тематик указаны на втором листе этого файла All_Subjects. Придумайте новое имя для своего творения. Please explain how to test with your file. Set to NEEDINFO. Change back to UNCONFIRMED after you have provided the information. (In reply to Buovjaga from comment #2) I'm not the reporter, but I do understand how to reproduce the reported behavior. > I tried editing A3 to have cat6, but got an error dialog: > > Названия уже созданных тематик указаны на втором листе этого файла > All_Subjects. Придумайте новое имя для своего творения. > > Please explain how to test with your file. ...Then while in A3 go to Data Validity and click OK on the dialog. Now a new value (e.g. "a") is accepted, whereas before the OK, it was not. I'm not sure this is really a bug, because there is a kind of circular reference: the condition for the validity check includes the value of the cell where the validity is being checked. Adding the formula to check the validity in a different cell and then having the original validity check that new cell might work around the "circular reference". Whether the behavior is acceptable, or it is a bug, IDK. The problem appears to be a matter of file format used. I did not notice until saving my experimental edits of the test case under a different filename but ... the test case file submitted is saved in xlsx format ... not ods format! Once the (unedited) test case file is saved in ods format, then closed and reopened: ... all data validity formula used in column A behave just as you would expect! SO .. I'm not sure any of the following helps but it is included for thoroughness... There is definitely something strange happening with the formula drawn in from an xlsx format file and used for the validity rule in column A but it is _not_ a problem with any circular reference. The "circular reference" is legitimate because the validity rule has the type: Allow: Custom which necessarily takes a Formula and that formula cannot possibly produce an input value-dependent result if the input value is not referred to within the formula. ... n'est-ce pas? Just about any edit of the formula causes the formula to behave as you would expect. i.e. an input that is not found in the list (from column A on the second sheet) is allowed but an input that matches any value already in that list is disallowed. Indeed selecting any cell in Parameters column A and then opening Data Validity then cutting and pasting the _very_same_formula_ then saving that validity rule causes the desired behaviour. ... ah hah! file format of test case is xlxs not ods !! |