liquid_feedback_frontend
changeset 1565:0cdd70825c45
Do not offer to suggest the current initiative when revoking an initiative
author | bsw |
---|---|
date | Tue Nov 10 21:11:37 2020 +0100 (2020-11-10) |
parents | 15f33adc0e31 |
children | 7b7406a84346 |
files | app/main/initiative/revoke.lua |
line diff
1.1 --- a/app/main/initiative/revoke.lua Tue Nov 10 21:09:34 2020 +0100 1.2 +++ b/app/main/initiative/revoke.lua Tue Nov 10 21:11:37 2020 +0100 1.3 @@ -3,6 +3,7 @@ 1.4 :get_reference_selector("supported_initiatives") 1.5 :join("issue", nil, "issue.id = initiative.issue_id") 1.6 :add_where("issue.closed ISNULL") 1.7 + :add_where{ "initiative.id <> ?", initiative.id } 1.8 :add_order_by("issue.id") 1.9 :exec() 1.10