tosdr / edit.tosdr.org

👍👎 A new web app to rate services
https://edit.tosdr.org
GNU Affero General Public License v3.0
213 stars 37 forks source link

Remove link when changing an excerpt #921

Closed JustinBack closed 3 years ago

JustinBack commented 4 years ago

(Taken from here https://forum.tosdr.org/t/phoenix-bug-when-amending-excerpts/56)

Basically, when changing an excerpt you cannot append existing text to the already used excerpt as phoenix disables the popup.

Possible fix would be to remove the link in an currently used excerpt when the GET parameter point_id is defined

if snippet[:pointId] == @point.id 

Not a ruby dev so ain't touching code :P