Fix Changelog Entry Deletion
Closed, ResolvedPublic

Description

There's a bug where you can't delete changelog entries. It's trying to post /p//deleteupdateajax instead of /p/1160672/deleteupdateajax.

https://i.imgur.com/eGSfE8Q.png

Saving an edit works because the productId is hardcoded into the function (when the page is rendered I guess).

http://i.imgur.com/hKYqN24.png

Where as delete calls var productId = $modalPpload.attr('data-product-id'); which isn't set for either button.

https://i.imgur.com/QC7JI06.png

https://i.imgur.com/wenZbii.png

Zren created this task.Dec 22 2016, 7:40 AM
ronaldv claimed this task.Dec 22 2016, 8:38 AM
ronaldv added a subscriber: ronaldv.
ronaldv moved this task from To Do to Work in Progress on the KDE Store board.Dec 22 2016, 9:07 AM

Thanks for the bugreport!
I fixed it now.

Zren added a comment.Jan 13 2017, 9:51 AM

Thanks for fixing it, finally got around to testing the deletion today and it worked.

starbuck closed this task as Resolved.Jan 13 2017, 9:03 PM
starbuck moved this task from Needs Review to Done on the KDE Store board.Jan 14 2017, 10:37 PM