mj-v1.14.3
domi41 3 years ago
parent 9bbcc8ae23
commit fcefce80f1

@ -170,7 +170,7 @@ func EditPollPost(ctx *context.Context) {
ctx.Redirect(ctx.Repo.RepoLink + "/polls")
}
// DeletePoll delete a poll and redirects
// DeletePoll deletes a poll and redirects
func DeletePoll(ctx *context.Context) {
if err := models.DeletePollByRepoID(ctx.Repo.Repository.ID, ctx.ParamsInt64(":id")); err != nil {
ctx.Flash.Error("DeletePollByRepoID: " + err.Error())

Loading…
Cancel
Save