Skip to content

Conversation

@tlvu
Copy link

@tlvu tlvu commented Dec 1, 2025

Fixes #5864

Example: "Standard 3" title:

  • if line 1 and line 3 are missing, then line 2 is immutable (can not update).

  • if line 1 is missing, then update to line 2 is lost and update to line 3 becomes line 2.

Note that if line 3 is missing, then update to line 1 and line 2 are working fine.

The fix is to always display all the lines, even if they are empty, which fixes all the update problems above.

Since all the lines are displayed, even those previously empty, the fix also allows to set new values for those previously empty lines.

This removes the previous restriction that once a line is empty, it disappears from the title editor, meaning the end-user can not change its mind and set a value for those line again. Now the end-user can change its mind anytime. Any lines can change from being empty or not, any time.

Manually tested against "Standard 3" and "Standard 4" titles, but I believe this fix will impact all multi-lines titles. Is there an automated way to test all of them?

tlvu added 2 commits November 30, 2025 23:04
Example: "Standard 3" title:

* if line 1 and line 3 are missing, then line 2 is immutable (can not update).

* if line 1 is missing, then update to line 2 is lost and update to line 3 becomes line 2.

Note that if line 3 is missing, then update to line 1 and line 2 are working fine.

The fix is to always display all the lines, even if they are empty,
which fixes all the update problems above.

However, those lines that are empty, they are not updatable, even if the
field is writable.
tlvu added 2 commits November 30, 2025 23:36
This reverts commit 8530770.

No need since now we are able to update previously empty fields.
@tlvu tlvu changed the title title_editor: fix multi-lines titles update error if missing line 1 title_editor: fix multi-lines titles update error if missing line 1 (Fixes #5864) Dec 1, 2025
@tlvu
Copy link
Author

tlvu commented Dec 3, 2025

FYI I've updated this PR to also handle this case:

Since all the lines are displayed, even those previously empty, the fix also allows to set new values for those previously empty lines.

This removes the previous restriction that once a line is empty, it disappears from the title editor, meaning the end-user can not change its mind and set a value for those line again. Now the end-user can change its mind anytime. Any lines can change from being empty or not, any time.

Manually tested against "Standard 3" and "Standard 4" titles, but I believe this fix will impact all multi-lines titles. Is there an automated way to test all of them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Standard 3 Title update error if missing line 1

1 participant