# HG changeset patch # User bsw # Date 1605039097 -3600 # Node ID 0cdd70825c45d06edeb8f18c796c6c9331e8466b # Parent 15f33adc0e31b63ad711574847c82217c9d786dc Do not offer to suggest the current initiative when revoking an initiative diff -r 15f33adc0e31 -r 0cdd70825c45 app/main/initiative/revoke.lua --- a/app/main/initiative/revoke.lua Tue Nov 10 21:09:34 2020 +0100 +++ b/app/main/initiative/revoke.lua Tue Nov 10 21:11:37 2020 +0100 @@ -3,6 +3,7 @@ :get_reference_selector("supported_initiatives") :join("issue", nil, "issue.id = initiative.issue_id") :add_where("issue.closed ISNULL") + :add_where{ "initiative.id <> ?", initiative.id } :add_order_by("issue.id") :exec()