|
|
|
@ -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())
|
|
|
|
|