Phoenix bug when amending excerpts

It doesn’t seem to like including the original excerpt as a substring.

works: image

doesn’t work: image

1 Like

+1, my fix was to decline my own point and create a new one which of course isn’t feasable for non contributors.

Possible solution would be not to render links when clicking on “Change Excerpt”

Sadly I have little to none experience in ruby and I am not able to make a PR myself. Maybe @michielbdejong could chime in?

1 Like

Looked through Github and found this line:

Possibly add an if to compare for a matching ID.

if snippet[:pointId] == @point.id or something like that. Which wouldn’t be a problem as the “Change Excerpt” button adds the GET parameter point_id

https://edit.tosdr.org/services/SERVICE_ID/annotate?point_id=POINT_ID

(Line 36 makes use of the GET parameter as well)

Github: https://github.com/tosdr/edit.tosdr.org/issues/921

1 Like