Skip to content

Commit

Permalink
Merge branch 'comment-position-bugfix' into 'main'
Browse files Browse the repository at this point in the history
Fix comment position rebase offset

See merge request reportcreator/reportcreator!729
  • Loading branch information
MWedl committed Oct 10, 2024
2 parents 1ee3946 + 69e13ac commit 232a5b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/reportcreator_api/pentests/serializers/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def create(self, validated_data):
text_range, version = rebase_selection(
selection=text_range,
over_events=CollabEvent.objects.filter(related_id=self.context['project'].id).filter(path=path_absolute),
version=int(version),
version=version,
)
value = CollabStr(value)
if text_range.empty or text_range.to > len(value):
Expand Down

0 comments on commit 232a5b0

Please sign in to comment.