Description: Predefined-type target for auto-redact cannot be edited correctly: it can be changed to text-type one. Steps to Reproduce: 1. add a new target with following settings: Type: Predefined Content: Credit card number 2. Select the target and click "Edit Taget" button. 3. Change Type: from Predefind to Text. Actual Results: The Content field is not switched to text box, but still the dropdown-list and no text can be entered. Moreover, "All fields are required" is shown as the warning if OK is clicked. Expected Results: The Content field is switched from the dropdown-list to text box and some text can be entered. Reproducible: Always User Profile Reset: No Additional Info: Version: 6.4.0.0.beta1+ Build ID: 876303943113bb7fa09c3b344a832f714ac2d8e3 CPU threads: 8; OS: Linux 5.3; UI render: default; VCL: gtk3; Locale: ja-JP (ja_JP.UTF-8); UI-Language: en-US Calc: CL
I confirm, that the warning "All fields are required" appears, but I'm able to switch content field to text box Version: 6.4.0.0.beta1 (x64) Build ID: 4d7e5b0c40ed843384704eca3ce21981d4e98920 CPU threads: 4; OS: Windows 10.0 Build 18362; UI render: default; VCL: win; Locale: de-DE (de_DE); UI-Language: en-US Calc: threaded => NEW because of the warning
I gave a try with https://gerrit.libreoffice.org/c/core/+/99213
Julien: Thank you for your writing a patch. It seems to work well and the dropdown-list can be switched to text box and I can enter some text there.
Julien Nabet committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/c61f3f47280334c9589fe37742cad93501540857 tdf#128838: autoredact, change Content UI according to Type when editing target It will be available in 7.1.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Cherry-pick for 7.0 branch waiting for review here: https://gerrit.libreoffice.org/c/core/+/99208
Julien Nabet committed a patch related to this issue. It has been pushed to "libreoffice-7-0": https://git.libreoffice.org/core/commit/20a87b075e868ebe036e3e6d0930eb2ee501c334 tdf#128838: autoredact, change Content UI according to Type when editing target It will be available in 7.0.1. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
It's ok in Version: 7.1.0.0.alpha0+ Build ID: e2f4e65a7b8024c00b049eebf0d87637efda7f24 CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3 Locale: en-US (ro_RO.UTF-8); UI: en-US Calc: threaded