Skip to content

Fix change recommendation nr while creating - #6459

Open
Elblinator wants to merge 2 commits into
OpenSlides:mainfrom
Elblinator:6394-changereco
Open

Fix change recommendation nr while creating#6459
Elblinator wants to merge 2 commits into
OpenSlides:mainfrom
Elblinator:6394-changereco

Conversation

@Elblinator

@Elblinator Elblinator commented Jul 30, 2026

Copy link
Copy Markdown
Member

resolves #6394

https://github.com/OpenSlides/openslides-client/pull/6209/changes

I tested all three issues this PR fixes and I could not detenct changes in behaviour:
#5016 (Amendment with all crossed out content: change reco not possible)
#6157 (Change recommendation: Doesn't work with completly deleted text in amendments)
#6215 (Issues with change recommendations on amendments)

@Elblinator Elblinator added this to the 4.4 milestone Jul 30, 2026
@Elblinator
Elblinator requested a review from bastianjoel July 30, 2026 07:06
@Elblinator Elblinator added the bug label Jul 30, 2026
@Elblinator

Copy link
Copy Markdown
Member Author

Just removing the code pieces makes that If an amenment deleted three line and (e.g. line 3-5) and a CR is added to line 4 then the CR is only on line 4.
That should not happen (?) all three lines should be included.

The newest commit is checking if the line above really belong to the to be looked at lines (I think)

@Elblinator Elblinator assigned bastianjoel and unassigned Elblinator Jul 31, 2026
@Elblinator
Elblinator marked this pull request as ready for review July 31, 2026 09:05
lineRange.from = Math.min(newLnRange.from, lineRange.from);
lineRange.to = Math.max(newLnRange.to, lineRange.to);
} else {
} else if (!toLnElement.parentElement.classList.contains(`merge-before`)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you elaborate where you got this condition from and what merge-before is supposed to indicate?
The class seems a bit like a leftover to me as it is currently seemingly nowhere used.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change recommendations: line selection incorrect

2 participants